company logo

ControlContext :: setTextSelection - Set a selection in a Multiline edit

The function selects (highlights) the text beginning at the position passed in iPosition. The next iLength bytes will be selected. Text position and length are supposed to be based on plain text positions.

Implementation details

ControlContext  :: setTextSelection ( int32 iPosition, int32 iLength )
  • iPosition - Position in collection

    The position of an entry in a collection or list is the number of the entry in the collection beginning with 0 for the first entry.

  • iLength - String length