TextBox.SelectionStart TextBox.SelectionStart TextBox.SelectionStart TextBox.SelectionStart Property

Definition

Gets or sets the starting position of the text selected in the text box. When the SelectionLength is 0 (there is no selected text), the SelectionStart property corresponds to the cursor position.

public : int SelectionStart { get; set; }
int32_t SelectionStart();

void SelectionStart(int32_t selectionstart);
public int SelectionStart { get; set; }
Public ReadWrite Property SelectionStart As int
<TextBox SelectionStart="int"/>

Property Value

int int

The starting position of the current selection or the current cursor position.