Defines a document style.
| Namespace | http://schemas.microsoft.com/office/word/2003/wordml |
| Schema name | XML Document 2003 |
| Element | Description |
|---|---|
| name | Represents the primary name of style. Built-in style names are converted to a language-independent form. |
| aliases | Represents the secondary names of a style, separated by commas |
| sti | Represents the built-in style's unique numerical identifier. |
| basedOn | Represents the styleId (name of style) this style is based on. |
| next | Represents the styleId name of the next-paragraph-style; used only for paragraph styles. |
| link | Represents the styleId of the linked style; used only for linked paragraph and character styles. |
| autoRedefine | Specifies whether this style can be automatically redefined when appropriate. |
| hidden | Specifies whether to show this style to the user. |
| semiHidden | Specifies not to show this style to users unless they request to see it. |
| locked | Restricts this style from use by the end user. |
| personal | Specifies whether this is another user's HTML threading personal style. |
| personalCompose | Specifies whether this is another user's HTML threading compose style. |
| personalReply | Specifies whether this is another user's HTML threading reply style. |
| rsid | Represents the Revision Save ID for this style, which is a unique identifier used to track when the style was last changed. |
| pPr | Represents the paragraph properties for the style, if any. |
| rPr | Represents the character properties for the style, if any. |
| tblPr | Represents the table properties for the style. |
| trPr | Represents the row properties for the style. |
| tcPr | Represents the cell properties for the style. |
| tblStylePr | Represents the table-style conditional-override properties. |
| wx:uiName | See external namespace. |
| Attribute | Type | Required | Description | Possible Values |
|---|---|---|---|---|
| type | styleKindValue | optional | Gets or sets the type of style. |
|
| styleId | stringType | optional | Gets or sets the name used to refer to this style within XML. This name is unique within the file. This attribute is otherwise unused. | |
| default | onOffType | optional | Specifies whether this style is the default for this type of style. |
|
<xsd:complexType name="styleElt" >
<xsd:sequence>
<xsd:element name="name" type="stringProperty" minOccurs="0" maxOccurs="1">
</xsd:element>
<xsd:element name="aliases" type="stringProperty" minOccurs="0">
</xsd:element>
<xsd:element ref="wx:uiName" minOccurs="0" maxOccurs="1">
</xsd:element>
<xsd:element name="sti" type="decimalNumberProperty" minOccurs="0">
</xsd:element>
<xsd:element name="basedOn" type="stringProperty" minOccurs="0">
</xsd:element>
<xsd:element name="next" type="stringProperty" minOccurs="0">
</xsd:element>
<xsd:element name="link" type="stringProperty" minOccurs="0">
</xsd:element>
<xsd:element name="autoRedefine" type="onOffProperty" minOccurs="0">
</xsd:element>
<xsd:element name="hidden" type="onOffProperty" minOccurs="0">
</xsd:element>
<xsd:element name="semiHidden" type="onOffProperty" minOccurs="0">
</xsd:element>
<xsd:element name="locked" type="onOffProperty" minOccurs="0">
</xsd:element>
<xsd:element name="personal" type="onOffProperty" minOccurs="0">
</xsd:element>
<xsd:element name="personalCompose" type="onOffProperty" minOccurs="0">
</xsd:element>
<xsd:element name="personalReply" type="onOffProperty" minOccurs="0">
</xsd:element>
<xsd:element name="rsid" type="longHexNumberProperty" minOccurs="0">
</xsd:element>
<xsd:element name="pPr" type="pPrElt" minOccurs="0" maxOccurs="1">
</xsd:element>
<xsd:element name="rPr" type="rPrElt" minOccurs="0" maxOccurs="1">
</xsd:element>
<xsd:element name="tblPr" type="tblPrElt" minOccurs="0" maxOccurs="1">
</xsd:element>
<xsd:element name="trPr" type="trPrElt" minOccurs="0" maxOccurs="1">
</xsd:element>
<xsd:element name="tcPr" type="tcPrElt" minOccurs="0" maxOccurs="1">
</xsd:element>
<xsd:element name="tblStylePr" type="tblStylePrElt" minOccurs="0" maxOccurs="unbounded">
</xsd:element>
</xsd:sequence>
<xsd:attribute name="type" type="styleKindValue" use="optional">
</xsd:attribute>
<xsd:attribute name="styleId" type="stringType" use="optional">
</xsd:attribute>
<xsd:attribute name="default" type="onOffType" use="optional">
</xsd:attribute>
</xsd:complexType>