DocumentVariable.Name Property

Document Variable Name.Represents the attribte in schema: w:name

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


<SchemaAttrAttribute(, "name")> _
Public Property Name As StringValue
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.


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:docVar w:name="example name" w:val="example value" />

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.

See Also


DocumentVariable Class

DocumentVariable Members

DocumentFormat.OpenXml.Wordprocessing Namespace