Share via


ShapeStyle Class

Defines the ShapeStyle Class.This class is only available in Office2010.When the object is serialized out as xml, its qualified name is wps:style.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Office2010.Word.DrawingShape.ShapeStyle

Namespace:  DocumentFormat.OpenXml.Office2010.Word.DrawingShape
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

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

Remarks

The following table lists the possible child types:

  • DocumentFormat.OpenXml.Drawing.LineReference <a:lnRef>

  • DocumentFormat.OpenXml.Drawing.FillReference <a:fillRef>

  • DocumentFormat.OpenXml.Drawing.EffectReference <a:effectRef>

  • DocumentFormat.OpenXml.Drawing.FontReference <a:fontRef>

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.Office2010.Word.DrawingShape Namespace