StringType.Val 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
字符串值
表示架构中的以下属性: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
是关联段落样式的 styleId
ID。
但是,请考虑以下片段:
<w:sdtPr>
<w:alias w:val="SDT Title Example" />
...
</w:sdtPr>
在这种情况下,属性中的val
十进制数是父结构化文档标记的描述文字。 在每种情况下,都会在父元素的上下文中解释值。
此属性的可能值由 ST_String
简单类型定义。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈