SelectionStart

Forms, interaction, unicode

Description

Returns the zero-based UTF-16 index where the normalized selection of the active edit begins

The start index is the smaller of SelectionAnchor and SelectionCaret, so reversed and forward selections report the same start

Selection edits combine this index with SelectionLength to compute the replaced text range

Declaration

property SelectionStart: Integer;

Value

Returns the UTF-16 start index within EditValue, or zero when no edit is active

See also

SelectionLength, SelectionAnchor, SelectionCaret, NormalizeSelection, GetSelectionRange