DocumentVariables-Klasse
Document Variables.When the object is serialized out as xml, its qualified name is w:docVars.
Vererbungshierarchie
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Wordprocessing.DocumentVariables
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
<ChildElementInfoAttribute(GetType(DocumentVariable))> _
Public Class DocumentVariables _
Inherits OpenXmlCompositeElement
'Usage
Dim instance As DocumentVariables
[ChildElementInfoAttribute(typeof(DocumentVariable))]
public class DocumentVariables : OpenXmlCompositeElement
Hinweise
The following table lists the possible child types:
- DocumentVariable <w:docVar>
[ISO/IEC 29500-1 1. Ausgabe]
17.15.1.32 docVars (Document Variables)
This element specifies the presence of documentvariables in a WordprocessingML. A document variable is a storage location for arbitrary customer data in name/value pairs that is persisted in a given WordprocessingML document.
[Note: This mechanism is maintained for legacy compatibility only, and should be avoided in favor of the custom XML data support defined in ISO/IEC 29500. end note]
[Example: Consider the following WordprocessingML specifying three document variables:
<w:docVars>
<w:docVar … />
<w:docVar … />
<w:docVar … />
</w:docVars>
The docVars element contains three child elements each defining a single document variable in this document. end example]
Parent Elements |
---|
settings (§17.15.1.78) |
Child Elements |
Subclause |
---|---|
docVar (Single Document Variable) |
§17.15.1.31 |
[Note: The W3C XML Schema definition of this element's content model (CT_DocVars) is located in §A.1. end note]
© 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.