GetItem Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets a particular table row from the collection.
Syntax
GetItem()
Gets the table row at the current input position.
public TableRow GetItem();Public Function GetItem() As TableRowGetItem(int)
Gets the table row with the specified number.
public TableRow GetItem(int row);Public Function GetItem(row As Integer) As TableRow| Parameter | Description |
|---|---|
| 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();textControl.Tables.Add(3, 3, 10)
Dim table As Table = textControl.Tables.GetItem(10)
Dim tableRowCollection As TableRowCollection = table.Rows
Dim result As TableRow = tableRowCollection.GetItem(1)
If result IsNot Nothing Then result.Select()