GetItem Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets a particular table cell from the collection.
Syntax
GetItem()
Gets the table cell at the current input position.
public TableCell GetItem();Public Function GetItem() As TableCellGetItem(int, int)
Gets the cell with the specified row and column number.
public TableCell GetItem(int row, int column);Public Function GetItem(row As Integer, column As Integer) As TableCell| Parameter | Description |
|---|---|
| row | Specifies the row number. It must be between 1 and the value returned through the TableRowCollection.Count property. |
| column | Specifies the column number. It must be between 1 and the value returned through the TableColumnCollection.Count property. |
Return Value
The return value is the requested cell.
Examples
The following example creates a small report table and works with its structure by using TableCellCollection.GetItem.
textControl.Tables.Add(3, 3, 10);
Table table = textControl.Tables.GetItem(10);
TableCellCollection tableCellCollection = table.Cells;
TableCell result = tableCellCollection.GetItem(1, 1);
result?.Select();textControl.Tables.Add(3, 3, 10)
Dim table As Table = textControl.Tables.GetItem(10)
Dim tableCellCollection As TableCellCollection = table.Cells
Dim result As TableCell = tableCellCollection.GetItem(1, 1)
If result IsNot Nothing Then result.Select()