Sign in Join
FPDoc Onlineexperiment

TCustomEdit.SelStart property

Member of TCustomEditpublicIn unit StdCtrls

The zero-based index for the first UTF-8 character in the current text selection.

Declaration

pascal
property SelStart: Integer read GetSelStart write SetSelStart;

Description

SelStart is an Integer property which contains the ordinal position in Text for the UTF-8-encoded character at the start of the current text selection. The current text selection includes the number of characters in SelLength. SelStart is a zero-based value.

The value for SelStart is read from the widgetset class when a handle has been allocated for the control. Otherwise, the value is read from the internal member for the property. Setting a new value for the property notifies the widgetset class when a handle has been allocated for the control.

Use SelLength for the number of UTF-8-encoded characters in the current text selection.

Use SelText to examine the values selected in the control, or to replace the value in the current text selection. ClearSelection can be used to remove the characters in the current text selection for the control.

Use SelectAll to make all values in Text the current text selection in the control.

Use HideSelection to un-select the current text selection in the control.

See also

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