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 at the current text input position. To remove a particular table with a certain identifier use the base class's implementation TableBaseCollection.Remove.

Syntax

public bool Remove();

Return Value

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

Examples

The following example works with tables in the current document by using TableCollection.Remove.

TableCollection tableCollection = textControl.Tables;
tableCollection.Add(3, 3, 10);

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