Share via


PrimaryStyle Class

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

Inheritance Hierarchy

System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlLeafElement
DocumentFormat.OpenXml.Wordprocessing.OnOffOnlyType
DocumentFormat.OpenXml.Wordprocessing.PrimaryStyle

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

Syntax

'宣言
Public Class PrimaryStyle _
    Inherits OnOffOnlyType
'使用
Dim instance As PrimaryStyle
public class PrimaryStyle : OnOffOnlyType

Remarks

[ISO/IEC 29500-1 初版]

17.7.2.14 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"/>
<w:qFormat/>
…
</w:style>

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

Parent Elements

style (§17.7.4.17)

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

© ISO/IEC29500: 2008. 上記の引用はマイクロソフト (またはその代理) によって英語から日本語に翻訳されたものであり、ISO はこうした翻訳に対する責任を一切負いません。

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

PrimaryStyle Members

DocumentFormat.OpenXml.Wordprocessing Namespace