Icon SelectionEnd Property

property SelectionEnd: Integer

Specifies the ending position (1-based) of the selected characters in the text. For example, if the control contains the text "Hello World", setting the SelectionStart property to 7 and the SelectionEnd property to 11 will result in the text "World" being selected.
Image