TX Text Control .NET for WPF

CanRemove Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets a value indicating whether selected rows can be removed.

Syntax

public bool CanRemove { get; }

Examples

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.");
    }
}

Limitations

Read only.