SplitCells Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Splits all selected table cells in this table. Only previously merged cells can be split. The Table.CanSplitCells property can be used to determine, if table cells can be split or not.
Syntax
public bool SplitCells();Public Function SplitCells() As BooleanReturn Value
The return value is true, if table cells could be split. Otherwise it is false.
Examples
The following example restores two cells after they have been merged into a single header cell.
textControl.Tables.Add(2, 2, 10);
Table table = textControl.Tables.GetItem(10);
table.Select(1, 1, 1, 2);
table.MergeCells();
table.Select(1, 1, 1, 1);
table.SplitCells();textControl.Tables.Add(2, 2, 10)
Dim table As Table = textControl.Tables.GetItem(10)
table.Select(1, 1, 1, 2)
table.MergeCells()
table.Select(1, 1, 1, 1)
table.SplitCells()