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

# TCustomComboBox.SelStart

zero-based index to the UTF-8 character at the beginning of the selected text in the edit box.

## Declaration

Source position: stdctrls.pp line 439

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

## Description

If text is selected in the edit box for the control, this is the starting position. When no text is selected, SelStart is the cursor position and SelLength is 0 (zero).

Writing a new value to the property moves the cursor, and removes the current text selection. Set SelLength after changing SelStart, to establish a new text selection.

SelStart is a zero-based index to UTF-8 character in the Text, in contrast to the usual 1-based string indices. The value 0 means the first UTF-8 character, the value 1 means the second UTF-8 character, etc.

## See also

TCustomComboBox.SelLength |  | The number of selected UTF-8 characters in the edit box.
TCustomComboBox.SelText |  | The selected text in the edit box for the control.