CanRemove Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets a value indicating whether table cells can be removed. Table cells 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 TableCellCollection.CanRemove.
textControl.Tables.Add(3, 3, 10);
Table table = textControl.Tables.GetItem(10);
TableCellCollection tableCellCollection = table.Cells;
if (tableCellCollection.CanRemove)
{
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.CanRemove Then
If tableCellCollection.Remove() Then
Console.WriteLine("Remove completed successfully.")
End If
End IfLimitations
Read only.