DocPartType.Val Property
Type Value.Represents the attribte in schema: w:val
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
<SchemaAttrAttribute(, "val")> _
Public Property Val As EnumValue(Of DocPartValues)
Get
Set
'Usage
Dim instance As DocPartType
Dim value As EnumValue(Of DocPartValues)
value = instance.Val
instance.Val = value
[SchemaAttrAttribute(, "val")]
public EnumValue<DocPartValues> Val { get; set; }
Property Value
Type: DocumentFormat.OpenXml.EnumValue<DocPartValues>
Returns EnumValue<T>.
Remarks
The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.
Specifies the classification of the document based on the types defined in the referenced simple type definition.
Consider a WordprocessingML document which should be classified as an e-mail message. This classification would be specified using the following WordprocessingML in the document settings:
<w:documentType w:val="eMail" />
The val attribute is equal to eMail, specifying that the hosting application may apply e-mail behaviors (if any) to this document.
The possible values for this attribute are defined by the ST_DocType simple type.