TX Text Control .NET Server

CanMergeCells Property

Property|Introduced in 17.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Checks whether table cells can be merged. Table cells can only be merged, if more than one cell in this table is selected.

Syntax

public bool CanMergeCells { get; }

Examples

The following example selects two adjacent cells and merges them only when the selection can be merged.

textControl.Tables.Add(2, 2, 10);
Table table = textControl.Tables.GetItem(10);

table.Select(1, 1, 1, 2);

if (table.CanMergeCells)
{
    table.MergeCells();
}

Limitations

Read only.