Compartilhar via


DocumentVariable.Name Propriedade

Definição

Nome da Variável do Documento

Representa o seguinte atributo no esquema: 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

Valor da propriedade

Devolve StringValue.

Atributos

Comentários

As seguintes informações do ECMA International Standard ECMA-376 podem ser úteis ao trabalhar com esta classe.

Especifica o nome da variável de documento principal.

Considere o seguinte fragmento do WordprocessingML que especifica uma variável de documento:

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

O name atributo especifica que o nome da variável de documento é example name.

Os valores possíveis para este atributo são definidos pelo ST_String tipo simples.

Aplica-se a