StringType.Val 属性

定义

字符串值

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

属性值

返回 StringValue

属性

注解

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

指定其内容将包含字符串。

此字符串的内容基于父 XML 元素的上下文进行解释。

请考虑以下 WordprocessingML 片段:

<w:pPr>  
  <w:pStyle w:val="heading1" />   
</w:pPr>  

特性的值 val 是关联段落样式的 styleIdID。

但是,请考虑以下片段:

<w:sdtPr>  
  <w:alias w:val="SDT Title Example" />  
  ...  
</w:sdtPr>  

在这种情况下,属性中的val十进制数是父结构化文档标记的描述文字。 在每种情况下,都会在父元素的上下文中解释值。

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

适用于