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 column from the collection.
Syntax
GetItem()
Gets the table column at the current input position.
public TableColumn GetItem();Public Function GetItem() As TableColumnGetItem(int)
Gets the table column with the specified number.
public TableColumn GetItem(int column);Public Function GetItem(column As Integer) As TableColumn| Parameter | Description |
|---|---|
| column | Specifies the column number. It must be between 1 and the value returned through the collection's Count property. |
Return Value
The return value is the requested column. It is null if the requested column could not be found.
Examples
The following example creates a small report table and works with its structure by using TableColumnCollection.GetItem.
textControl.Tables.Add(3, 3, 10);
Table table = textControl.Tables.GetItem(10);
TableColumnCollection tableColumnCollection = table.Columns;
TableColumn result = tableColumnCollection.GetItem(1);
result?.Select();textControl.Tables.Add(3, 3, 10)
Dim table As Table = textControl.Tables.GetItem(10)
Dim tableColumnCollection As TableColumnCollection = table.Columns
Dim result As TableColumn = tableColumnCollection.GetItem(1)
If result IsNot Nothing Then result.Select()