Поделиться через


StyleSet Class

Defines the StyleSet Class.This class is only available in Office2010.When the object is serialized out as xml, its qualified name is w14:styleSet.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Office2010.Word.StyleSet

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

Syntax

'Declaration
<OfficeAvailabilityAttribute(FileFormatVersions.Office2010)> _
Public Class StyleSet _
    Inherits OpenXmlLeafElement
'Usage
Dim instance As StyleSet
[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
public class StyleSet : OpenXmlLeafElement

Remarks

2.5.32 CT_StyleSet

Target namespace: https://schemas.microsoft.com/office/word/2009/2/wordml

Referenced by: CT_StylisticSets

CT_StyleSet specifies a reference to a set of character forms defined within the font to be used as a stylistic set. For more information about stylistic sets, see [OpenType].

Attributes:

id : An ST_UnsignedDecimalNumber attribute (see [ISO/IEC-29500-1] §22.9.2.16) that specifies the stylistic set that this element represents. MUST be greater than or equal to 1 and less than or equal to 20.

val : An optional ST_OnOff attribute that specifies if the stylistic set specified by id is enabled. If set to false, this element MUST be ignored. By default, the stylistic set specified by id is enabled.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.

<xsd:complexType name="CT_StyleSet">

<xsd:attribute name="id" type="w:ST_UnsignedDecimalNumber" use="required"/>

<xsd:attribute name="val" type="ST_OnOff" use="optional"/>

</xsd:complexType>

See section 5.1 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

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

StyleSet Members

DocumentFormat.OpenXml.Office2010.Word Namespace