Defines a document style.

Type Information

Namespace http://schemas.microsoft.com/office/word/2003/wordml
Schema name wordnet

Elements and Attributes

Child Elements

Element Type Description
name stringProperty Represents the primary name of style. Built-in style names are converted to a language-independent form.
aliases stringProperty Represents the secondary names of a style, separated by commas
sti decimalNumberProperty Represents the built-in style's unique numerical identifier.
basedOn stringProperty Represents the styleId (name of style) this style is based on.
next stringProperty Represents the styleId name of the next-paragraph-style; used only for paragraph styles.
link stringProperty Represents the styleId of the linked style; used only for linked paragraph and character styles.
autoRedefine onOffProperty Specifies whether this style can be automatically redefined when appropriate.
hidden onOffProperty Specifies whether to show this style to the user.
semiHidden onOffProperty Specifies not to show this style to users unless they request to see it.
locked onOffProperty Restricts this style from use by the end user.
personal onOffProperty Specifies whether this is another user's HTML threading personal style.
personalCompose onOffProperty Specifies whether this is another user's HTML threading compose style.
personalReply onOffProperty Specifies whether this is another user's HTML threading reply style.
rsid longHexNumberProperty Represents the Revision Save ID for this style, which is a unique identifier used to track when the style was last changed.
pPr pPrElt Represents the paragraph properties for the style, if any.
rPr rPrElt Represents the character properties for the style, if any.
tblPr tblPrElt Represents the table properties for the style.
trPr trPrElt Represents the row properties for the style.
tcPr tcPrElt Represents the cell properties for the style.
tblStylePr tblStylePrElt Represents the table-style conditional-override properties.
Name external ref See external namespace.

Attributes

Attribute Type Required Description Possible Values
type styleKindValue optional Gets or sets the type of style.
  • paragraph
  • character
  • table
  • list
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.
  • on
  • off

Definition

XML

<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>

©2006 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at:
http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice12.asp