TextBox.SelectionStart Propriedade

Definição

Obtém ou define a posição inicial do texto selecionado na caixa de texto. Quando SelectionLength é 0 (não há texto selecionado), a propriedade SelectionStart corresponde à posição do cursor.

public:
 property int SelectionStart { int get(); void set(int value); };
int SelectionStart();

void SelectionStart(int value);
public int SelectionStart { get; set; }
var int32 = textBox.selectionStart;
textBox.selectionStart = int32;
Public Property SelectionStart As Integer
<TextBox SelectionStart="int"/>

Valor da propriedade

Int32

int

A posição inicial da seleção atual ou da posição atual do cursor.

Aplica-se a