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