DocumentVariable.Name Property
Document Variable Name.Represents the attribte in schema: w:name
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'宣言
<SchemaAttrAttribute(, "name")> _
Public Property Name As StringValue
Get
Set
'使用
Dim instance As DocumentVariable
Dim value As StringValue
value = instance.Name
instance.Name = value
[SchemaAttrAttribute(, "name")]
public StringValue Name { get; set; }
Property Value
Type: DocumentFormat.OpenXml.StringValue
Returns StringValue.
Remarks
The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.
Specifies the name of the parent document variable.
Consider the following WordprocessingML fragment specifying a document variable:
<w:docVars>
<w:docVar w:name="example name" w:val="example value" />
</w:docVars>
The name attribute specifies that the name of the document variable is example name.
The possible values for this attribute are defined by the ST_String simple type.