TX Text Control .NET Server

Select Method

Method|Introduced in 10.1
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

Selects the table or a part of the table.

Syntax

Select()

Selects the complete table.

public void Select();

Select(int, int, int, int)

Selects the part of the table defined through two table cells.

public void Select(int startRow, int startColumn, int stopRow, int stopColumn);
ParameterDescription
startRow

Specifies the row number where the selection begins.

startColumn

Specifies the column number where the selection begins.

stopRow

Specifies the row number where the selection ends.

stopColumn

Specifies the column number where the selection ends.

Examples

The following example selects rows two and three of a table and applies bold formatting to their text.

textControl.Tables.Add(4, 3, 10);
Table table = textControl.Tables.GetItem(10);

table.Select(2, 1, 3, 3);
textControl.Selection.Bold = true;