Vcl.StdCtrls.TCustomEdit.AutoSelect
Delphi
property AutoSelect: Boolean read FAutoSelect write FAutoSelect default True;
C++
__property bool AutoSelect = {read=FAutoSelect, write=FAutoSelect, default=1};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | protected | Vcl.StdCtrls.pas Vcl.StdCtrls.hpp |
Vcl.StdCtrls | TCustomEdit |
Description
Determines whether all the text in the edit control is automatically selected when the control gets focus.
Set AutoSelect to select all the text when the edit control gets focus. AutoSelect only applies to single-line edit controls.
Use AutoSelect when the user is more likely to replace the text in the edit control than to append to it.