Select Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Selects the table or a part of the table.
Syntax
Select()
Selects the complete table.
public void Select();Public Sub [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);Public Sub [Select](startRow As Integer, startColumn As Integer, stopRow As Integer, stopColumn As Integer)| Parameter | Description |
|---|---|
| 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;textControl.Tables.Add(4, 3, 10)
Dim table As Table = textControl.Tables.GetItem(10)
table.Select(2, 1, 3, 3)
textControl.Selection.Bold = True