Share via


TextBox.SelectionStart Propiedad

Definición

Obtiene o establece la posición inicial del texto seleccionado en el cuadro de texto. Cuando SelectionLength es 0 (no hay texto seleccionado), la propiedad SelectionStart corresponde a la posición del 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 de propiedad

Int32

int

Posición inicial de la selección actual o la posición del cursor actual.

Se aplica a