Remove Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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();Public Function Remove() As BooleanReturn 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.");
}textControl.Tables.Add(3, 3, 10)
Dim table As Table = textControl.Tables.GetItem(10)
Dim tableColumnCollection As TableColumnCollection = table.Columns
If tableColumnCollection.Remove() Then
Console.WriteLine("Remove completed successfully.")
End If