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 selected rows can be removed.
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 TableRowCollection.CanRemove.
textControl.Tables.Add(3, 3, 10);
Table table = textControl.Tables.GetItem(10);
TableRowCollection tableRowCollection = table.Rows;
if (tableRowCollection.CanRemove)
{
if (tableRowCollection.Remove())
{
Console.WriteLine("Remove completed successfully.");
}
}textControl.Tables.Add(3, 3, 10)
Dim table As Table = textControl.Tables.GetItem(10)
Dim tableRowCollection As TableRowCollection = table.Rows
If tableRowCollection.CanRemove Then
If tableRowCollection.Remove() Then
Console.WriteLine("Remove completed successfully.")
End If
End IfLimitations
Read only.