[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'StdCtrls' (#lcl)

TCustomEdit.CaretPos

The position of the text cursor.

Declaration

Source position: stdctrls.pp line 808

public property TCustomEdit.CaretPos : TPoint
  read GetCaretPos
  write SetCaretPos;

Description

Character positions are relative to the string, independent of LTR/RTL display. The position reflects logical (UTF-8) characters.

Position zero is right before the first character.

If there is a selection, the caret is considered to be right after the last selected character.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.