[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'StdCtrls' (#lcl)

# TCustomEdit.SelStart

The zero-based index for the first UTF-8 character in the current text selection.

## Declaration

Source position: stdctrls.pp line 874

`public property TCustomEdit.SelStart : Integer read GetSelStart write SetSelStart;`

## Description

SelStart is an Integer property which contains the ordinal position in Text for the UTF-8-encoded character at the start of the current text selection. The current text selection includes the number of characters in SelLength. SelStart is a zero-based value.

The value for SelStart is read from the widgetset class when a handle has been allocated for the control. Otherwise, the value is read from the internal member for the property. Setting a new value for the property notifies the widgetset class when a handle has been allocated for the control.

Use SelLength for the number of UTF-8-encoded characters in the current text selection.

Use SelText to examine the values selected in the control, or to replace the value in the current text selection. ClearSelection can be used to remove the characters in the current text selection for the control.

Use SelectAll to make all values in Text the current text selection in the control.

Use HideSelection to un-select the current text selection in the control.

## See also

TCustomEdit.SelLength |  | The number of currently selected UTF-8-encoded characters in the control.
TCustomComboBox.SelStart |  | zero-based index to the UTF-8 character at the beginning of the selected text in the edit box.