MailMergeFieldType.Val Property

Merge Field Mapping Type.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 MailMergeOdsoFieldValues)
    Get
    Set
'Usage
Dim instance As MailMergeFieldType
Dim value As EnumValue(Of MailMergeOdsoFieldValues)

value = instance.Val

instance.Val = value
[SchemaAttrAttribute(, "val")]
public EnumValue<MailMergeOdsoFieldValues> Val { get; set; }

Property Value

Type: DocumentFormat.OpenXml.EnumValue<MailMergeOdsoFieldValues>
Returns EnumValue<T>.

Remarks

The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.

Specifies if the given mail merge field has been mapped to a column in the given external data source (in other words, if the merge field mapping is valid or not).

Consider the following WordprocessingML fragment for a mail merge source or merged document:

<w:type w:val="null" />

In this example, the given mail merge field shall not be mapped to a column in the given external data source, as specified by the type element's val attribute being equal to null.

The possible values for this attribute are defined by the ST_MailMergeOdsoFMDFieldType simple type.

See Also

Reference

MailMergeFieldType Class

MailMergeFieldType Members

DocumentFormat.OpenXml.Wordprocessing Namespace