DocumentVariable.Name 属性

定义

文档变量名称

表示架构中的以下属性: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

属性值

返回 StringValue

属性

注解

使用此类时,ECMA 国际标准 ECMA-376 中的以下信息可能很有用。

指定父文档变量的名称。

请考虑以下指定文档变量的 WordprocessingML 片段:

<w:docVars>  
  <w:docVar w:name="example name" w:val="example value" />  
</w:docVars>  

属性 name 指定文档变量的名称为 example name

此属性的可能值由 ST_String 简单类型定义。

适用于