TX Text Control .NET for Windows Forms

Remove Method

Method
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Removes the table column at the current text input position or all selected table columns when a text selection exists.

Syntax

public bool Remove();

Return Value

The return value is true, if table columns could be removed. Otherwise it is false.

Examples

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

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

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