Vcl.StdCtrls.TCustomEdit.ClearSelection
Delphi
procedure ClearSelection;
C++
void __fastcall ClearSelection(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.StdCtrls.pas Vcl.StdCtrls.hpp |
Vcl.StdCtrls | TCustomEdit |
Description
Removes the selected text from the edit control.
Use ClearSelection to delete the selected text from the edit control. If no text is selected, ClearSelection does nothing. If all of the text is selected, ClearSelection clears all text, like the Clear method.
Note: Calling ClearSelection does the same thing as sending the edit control a WM_CLEAR message.