TX Text Control .NET for WPF

CanSplit Property

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

Description

Checks whether this table can be split. A table can only be split if it contains the current input position and no further text is selected.

Syntax

public bool CanSplit { get; }

Examples

The following example places the input position in the second row and splits the table after that row when the operation is available.

textControl.Tables.Add(4, 3, 10);
Table table = textControl.Tables.GetItem(10);
textControl.InputPosition =
    new InputPosition(table.Cells.GetItem(2, 1).Start);

if (table.CanSplit)
{
    table.Split(TableAddPosition.After);
}

Limitations

Read only.