Sign in Join
FPDoc Onlineexperiment

TCustomEdit.ClearSelection procedure

Member of TCustomEditpublicIn unit StdCtrls

Clears the current text selection in the edit control.

Declaration

pascal
procedure ClearSelection; virtual

Description

ClearSelection is a procedure used to clear the currently selected text in the edit control. ClearSelection sets the value in SelText to an empty string ('') to discard selected value in the edit control. It does not affect the values in the Text property.

No actions are performed in the method when SelLength contains 0 (zero).

Use HideSelection to disable text selection in the edit control.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.