RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomEdit.ClearSelection Method

Removes the selected text from the edit control.

Pascal
procedure ClearSelection;
C++
__fastcall ClearSelection();

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.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!