MergeCells Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Merges all selected table cells in this table. The Table.CanMergeCells property can be used to determine, if table cells can be merged or not.
Syntax
public bool MergeCells();Public Function MergeCells() As BooleanReturn Value
The return value is true, if table cells could be merged. Otherwise it is false.
Examples
The following example creates a single header cell by merging the cells in the first row.
textControl.Tables.Add(3, 3, 10);
Table table = textControl.Tables.GetItem(10);
table.Select(1, 1, 1, 3);
table.MergeCells();textControl.Tables.Add(3, 3, 10)
Dim table As Table = textControl.Tables.GetItem(10)
table.Select(1, 1, 1, 3)
table.MergeCells()