SdtDateMappingType.Val Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Date Storage Type
Represents the following attribute in the schema: 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)
Property Value
Returns EnumValue<T>.
- Attributes
Remarks
The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.
Specifies the type of date translation which shall be applied to the parent date picker structured document tag.
If this attribute is omitted, this its value shall be assumed to be text
.
Consider the following date picker structured document tag:
<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>
The value of the val
attribute is text
; therefore, the current run contents shall be sent to the mapped XML element after being translated into xsd:date
format (in this case, the value shall be 01-01-2006
).
The possible values for this attribute are defined by the ST_SdtDateMappingType
simple type.