CanMergeCells Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public ReadOnly Property CanMergeCells As BooleanExamples
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();
}textControl.Tables.Add(2, 2, 10)
Dim table As Table = textControl.Tables.GetItem(10)
table.Select(1, 1, 1, 2)
If table.CanMergeCells Then
table.MergeCells()
End IfLimitations
Read only.