TiEditCustom.ClearSelection
TiEditCustom
Deletes the selected text from the edit control.
procedure ClearSelection;
Description
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: if AutoSelect is set to TRUE, and the component loses focus before you call this method,
then the selection will reflect all text in the control. This will result in all
text being cleared in the control. You will generally want to set AutoSelect to FALSE if you intend to use this method.
Example
Delphi
iComponent.ClearSelection;
C++ Builder
iComponent->ClearSelection();
Contents | Index | Previous | Next