DocumentVariable.Name Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Document Variable Name
Represents the following attribute in the schema: w:name
[DocumentFormat.OpenXml.SchemaAttr(23, "name")]
public DocumentFormat.OpenXml.StringValue Name { get; set; }
public DocumentFormat.OpenXml.StringValue Name { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(23, "name")]
public DocumentFormat.OpenXml.StringValue? Name { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("w:name")]
public DocumentFormat.OpenXml.StringValue? Name { get; set; }
public DocumentFormat.OpenXml.StringValue? Name { get; set; }
member this.Name : DocumentFormat.OpenXml.StringValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr(23, "name")>]
member this.Name : DocumentFormat.OpenXml.StringValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr("w:name")>]
member this.Name : DocumentFormat.OpenXml.StringValue with get, set
Public Property Name As StringValue
Property Value
Returns StringValue.
- Attributes
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.