PrimaryStyle Class

Primary Style.When the object is serialized out as xml, its qualified name is w:qFormat.

Inheritance Hierarchy


Namespace:  DocumentFormat.OpenXml.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)


Public Class PrimaryStyle _
    Inherits OnOffOnlyType
Dim instance As PrimaryStyle
public class PrimaryStyle : OnOffOnlyType


[ISO/IEC 29500-1 1st Edition] qFormat (Primary Style)

This element specifies whether this style shall be treated as a primary style when this document is loaded by an application. If this element is set, then this style has been designated as being particularly important for the current document, and this information can be used by an application in any means desired. [Note: This setting does not imply any behavior for the style, only that the style is of particular significance for this document. end note]

If this element is omitted, then the style shall not be considered a primary style for this document.

[Example: Consider a style with a primary name of PrimaryStyleExample that should be treated as a primary style for the document. This requirement would be specified using the following WordprocessingML:

<w:style … w:styleId="PStyle">
<w:name w:val="PrimaryStyleExample"/>

The qFormat element specifies that this style definition must be treated as a primary style for this document. end example]

Parent Elements

style (§

This element’s content model is defined by the common boolean property definition in §17.17.4.

© ISO/IEC29500: 2008.

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


PrimaryStyle Members

DocumentFormat.OpenXml.Wordprocessing Namespace