SdtDateMappingType.Val 属性

定义

日期存储类型

表示架构中的以下属性:w:val

[DocumentFormat.OpenXml.SchemaAttr(23, "val")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.DateFormatValues> Val { get; set; }
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.DateFormatValues> Val { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(23, "val")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.DateFormatValues>? Val { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("w:val")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.DateFormatValues>? Val { get; set; }
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.DateFormatValues>? Val { get; set; }
member this.Val : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.DateFormatValues> with get, set
[<DocumentFormat.OpenXml.SchemaAttr(23, "val")>]
member this.Val : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.DateFormatValues> with get, set
[<DocumentFormat.OpenXml.SchemaAttr("w:val")>]
member this.Val : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.DateFormatValues> with get, set
Public Property Val As EnumValue(Of DateFormatValues)

属性值

返回 EnumValue<T>

属性

注解

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

指定应应用于父日期选取器结构化文档标记的日期转换类型。

如果省略此属性,则其值应假定为 text

请考虑以下日期选取器结构化文档标记:

<w:sdt>  
  <w:sdtPr>  
    <w:date … >  
      <w:storeMappedDateAs w:val="date"/>  
      …  
    </w:date>  
  </w:sdtPr>  
  <w:sdtContent>  
    <w:r>  
      <w:t>January 1</w:t>  
    </w:r>  
  </w:sdtContent>  
</w:sdt>  

属性textval值为 ;因此,在转换为xsd:date格式后,当前运行内容应发送到映射的 XML 元素 (,在这种情况下,该值应 01-01-2006) 。

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

适用于