Compartilhar via


DocumentVariable.Val Propriedade

Definição

Valor da Variável do Documento

Representa o seguinte atributo no esquema: w:val

[DocumentFormat.OpenXml.SchemaAttr(23, "val")]
public DocumentFormat.OpenXml.StringValue Val { get; set; }
public DocumentFormat.OpenXml.StringValue Val { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(23, "val")]
public DocumentFormat.OpenXml.StringValue? Val { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("w:val")]
public DocumentFormat.OpenXml.StringValue? Val { get; set; }
public DocumentFormat.OpenXml.StringValue? Val { get; set; }
member this.Val : DocumentFormat.OpenXml.StringValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr(23, "val")>]
member this.Val : DocumentFormat.OpenXml.StringValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr("w:val")>]
member this.Val : DocumentFormat.OpenXml.StringValue with get, set
Public Property Val 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 valor 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="Samantha Smith" />  
</w:docVars>  

O val atributo especifica que o valor da variável de documento é Samantha Smith.

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

Aplica-se a