ShapeStyle Class

Style.When the object is serialized out as xml, its qualified name is a:style.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.ShapeStyle

Namespace:  DocumentFormat.OpenXml.Drawing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(LineReference))> _
<ChildElementInfoAttribute(GetType(FillReference))> _
<ChildElementInfoAttribute(GetType(EffectReference))> _
<ChildElementInfoAttribute(GetType(FontReference))> _
Public Class ShapeStyle _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As ShapeStyle
[ChildElementInfoAttribute(typeof(LineReference))]
[ChildElementInfoAttribute(typeof(FillReference))]
[ChildElementInfoAttribute(typeof(EffectReference))]
[ChildElementInfoAttribute(typeof(FontReference))]
public class ShapeStyle : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • LineReference <a:lnRef>

  • FillReference <a:fillRef>

  • EffectReference <a:effectRef>

  • FontReference <a:fontRef>

[ISO/IEC 29500-1 1st Edition]

20.1.2.2.37 style (Shape Style)

This element specifies the style information for a shape.

Parent Elements

cxnSp (§20.1.2.2.10); lnDef (§20.1.4.1.20); pic (§20.1.2.2.30); sp (§20.1.2.2.33); spDef (§20.1.4.1.27); txDef (§20.1.4.1.28)

Child Elements

Subclause

effectRef (Effect Reference)

§20.1.4.2.8

fillRef (Fill Reference)

§20.1.4.2.10

fontRef (Font Reference)

§20.1.4.1.17

lnRef (Line Reference)

§20.1.4.2.19

[Note: The W3C XML Schema definition of this element’s content model (CT_ShapeStyle) is located in §A.4.1. end note]

© ISO/IEC29500: 2008.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

ShapeStyle Members

DocumentFormat.OpenXml.Drawing Namespace