TX Text Control .NET Server

Remove Method

Method
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Removes the selected table rows or the row at the current text input position.

Syntax

public bool Remove();

Return Value

The return value is true, if the rows could be removed. Otherwise it is false.

Examples

The following example creates a small report table and works with its structure by using TableRowCollection.Remove.

textControl.Tables.Add(3, 3, 10);
Table table = textControl.Tables.GetItem(10);
TableRowCollection tableRowCollection = table.Rows;

if (tableRowCollection.Remove())
{
    Console.WriteLine("Remove completed successfully.");
}