TX Text Control .NET Server

CanRemove Property

Property
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

Gets a value indicating whether table columns can be removed. Columns 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 TableColumnCollection.CanRemove.

textControl.Tables.Add(3, 3, 10);
Table table = textControl.Tables.GetItem(10);
TableColumnCollection tableColumnCollection = table.Columns;

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

Limitations

Read only.