<defaultTableStyle>
(Default Table Style for Newly Inserted Tables)
This element specifies the table style which shall automatically be applied to the table properties of tables added to this document by an application. Note that it does not change the table style applied to tables which do not reference a style, instead, it automatically applies the style to that table via the <tblStyle>
element (§2.4.59). This link is made by referencing the @styleId
attribute value of the table style which shall be used to format newly inserted tables.
If this element is omitted, then no table style shall automatically be applied to inserted tables (therefore inheriting the default table style). If the referenced style is not present or not a table style, then no table style shall automatically be applied to inserted tables.
<w:defaultTableStyle w:val="LightShading-Accent3" />
The corresponding table style must therefore exist in the styles part:
<w:style w:type="table" w:styleId="LightShading-Accent3"> … </w:style>
The <defaultTableStyle>
element's @val
attribute has a value of LightShading-Accent3
specifying that that style will be applied automatically to newly inserted tables. ]
Parent Elements |
---|
|
Attributes |
Description |
---|---|
|
Specifies that its contents will contain a string. The contents of this string are interpreted based on the context of the parent XML element. <w:pPr> <w:pStyle w:val="heading1" /> </w:pPr> The value of the However, consider the following fragment: <w:sdtPr> <w:alias w:val="SDT Title Example" /> ... </w:sdtPr> In this case, the decimal number in the The possible values for this attribute are defined by the ST_String simple type (§2.18.89). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_String">
<attribute name="val" type="ST_String" use="required"/>
</complexType>