HorizontalMerge.Val Property

Horizontal Merge 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 MergedCellValues)
    Get
    Set
'Usage
Dim instance As HorizontalMerge
Dim value As EnumValue(Of MergedCellValues)

value = instance.Val

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

Property Value

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

Remarks

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

Specifies how the table cell is part of a horizontally merged region. This determine whether the cell should join onto an existing grouping of merged cells if any exist, or start a new group of merged cells. Refer to the simple type definition for a full description of each type.

If this attribute is omitted, its value shall be assumed to be continue.

Consider a table cell where a horizontal cell merge begins represented as the following WordprocessingML:

<w:tcPr>
    <w:hmerge w:val="restart"/>
</w:tcPr>

The attribute value of restart specifies that this element shall start a new horizontally merged region in this table.

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

See Also

Reference

HorizontalMerge Class

HorizontalMerge Members

DocumentFormat.OpenXml.Wordprocessing Namespace