TX Text Control .NET for WPF

CanSplitCells Property

Property|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

Returns true, if the currently selected table cells are merged.

Syntax

public bool CanSplitCells { get; }

Examples

The following example merges two cells and then checks whether the selected merged cell can be split again.

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

if (table.CanSplitCells)
{
    table.SplitCells();
}

Limitations

Read only.