Freigeben über


PrimaryStyle-Klasse

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

Vererbungshierarchie

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

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

Hinweise

[ISO/IEC 29500-1 1. Ausgabe]

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. Die oben aufgeführten Textauszüge wurden von Microsoft (und/oder den Microsoft-Vendoren) von Englisch nach Deutsch übersetzt, und im Rahmen von ISO wird keinerlei Verantwortung für diese Übersetzungen übernommen.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Siehe auch

Referenz

PrimaryStyle-Member

DocumentFormat.OpenXml.Wordprocessing-Namespace