TX Text Control .NET for WPF

SplitCells Method

Method|Introduced in 17.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

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();

Return 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();