TX Text Control .NET for Windows Forms

GetItem Method

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

Description

Gets a particular table row from the collection.

Syntax

GetItem()

Gets the table row at the current input position.

public TableRow GetItem();

GetItem(int)

Gets the table row with the specified number.

public TableRow GetItem(int row);
ParameterDescription
row

Specifies the row number. It must be between 1 and the value returned through the collection's Count property.

Return Value

The return value is the requested row. It is null if the requested row could not be found.

Examples

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

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

TableRow result = tableRowCollection.GetItem(1);
result?.Select();