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

# TCustomComboBox.SelectAll

Selects the text content in the edit box for the control.

## Declaration

Source position: stdctrls.pp line 421

`public procedure TCustomComboBox.SelectAll;`

## Description

SelectAll is a procedure used to select/highlight the Text displayed in the edit box for the control. SelectAll requires a Style that uses an edit box in the control. No actions are performed in the method when Style does not include an enabled edit box.

SelectAll sets the value in SelStart to 0 (zero) to move the selection to the beginning of the edit box, and sets SelLength to the number of UTF-8-encoded characters in Text. No selection/highlighting is performed when Text contains an empty string ('').

SelectAll is called from methods like DoEnter, KeyUp, CloseUp, and MouseUp.

## See also

TCustomComboBox.Style |  | Controls the appearance and behavior for the combo-box.
TCustomComboBox.Text |  | The value in the edit box for the control.
TCustomComboBox.SelStart |  | zero-based index to the UTF-8 character at the beginning of the selected text in the edit box.
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.
TCustomComboBox.DoEnter |  | Updates the control when the Enter key is applied.
TCustomComboBox.KeyUp |  | Handles AutoComplete and AutoSelect for the control.
TCustomComboBox.CloseUp |  | Called when the drop-down list is closed.
TCustomComboBox.MouseUp |  | Highlights the selected text in the control when the left mouse button is released.