TX Text Control .NET for Windows Forms

CanRemove Property

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

Description

Gets a value indicating whether table cells can be removed. Table cells can be removed, if either the current text input position is in a table, or if a part of a table is selected.

Syntax

public bool CanRemove { get; }

Examples

The following example creates a small report table and works with its structure by using TableCellCollection.CanRemove.

textControl.Tables.Add(3, 3, 10);
Table table = textControl.Tables.GetItem(10);
TableCellCollection tableCellCollection = table.Cells;

if (tableCellCollection.CanRemove)
{
    if (tableCellCollection.Remove())
    {
        Console.WriteLine("Remove completed successfully.");
    }
}

Limitations

Read only.