Gets or sets the starting point of selected text. The first possible position is 0. If the starting point of a selection is set to a new value, the selection's current length remains the same. To set a new starting point and a length simultaneously, use either the TextControl.Select method or create a new Selection object. To select parts of a table, use the Table.Select, TableRow.Select, TableColumn.Select and TableCell.Select methods.

Syntax

public int Start { get; set; }
Public Property Start() As Integer

Examples

The following example uses Start property to set the starting point of the selected text "TX Text Control". The first possible position is 0.

textControl1.Text = "TX Text Control";

TXTextControl.Selection mySel = new TXTextControl.Selection(3, 4);

mySel.Start         = 0;
mySel.Bold          = true;
mySel.Italic        = true;

textControl1.Selection = mySel;
TextControl1.Text = "TX Text Control"

Dim mySel as TXTextControl.Selection = New TXTextControl.Selection(3, 4)

mySel.Start         = 0
mySel.Bold          = True
mySel.Italic        = True

TextControl1.Selection = mySel

Limitations

Runtime only.