TX Text Control .NET Server

GetItem 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

Gets a particular table column from the collection.

Syntax

GetItem()

Gets the table column at the current input position.

public TableColumn GetItem();

GetItem(int)

Gets the table column with the specified number.

public TableColumn GetItem(int column);
ParameterDescription
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();