Remove Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Removes the table cell at the current text input position or all selected table cells when a text selection exists.
Syntax
public bool Remove();Public Function Remove() As BooleanReturn Value
The return value is true, if table cells could be removed. Otherwise it is false.
Examples
The following example creates a small report table and works with its structure by using TableCellCollection.Remove.
textControl.Tables.Add(3, 3, 10);
Table table = textControl.Tables.GetItem(10);
TableCellCollection tableCellCollection = table.Cells;
if (tableCellCollection.Remove())
{
Console.WriteLine("Remove completed successfully.");
}textControl.Tables.Add(3, 3, 10)
Dim table As Table = textControl.Tables.GetItem(10)
Dim tableCellCollection As TableCellCollection = table.Cells
If tableCellCollection.Remove() Then
Console.WriteLine("Remove completed successfully.")
End If