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 cell from the collection.

Syntax

GetItem()

Gets the table cell at the current input position.

public TableCell GetItem();

GetItem(int, int)

Gets the cell with the specified row and column number.

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