Vcl.StdCtrls.TCustomMemo.CaretPos

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property CaretPos: TPoint read GetCaretPos write SetCaretPos;

C++

__property Winapi::Windows::TPoint CaretPos = {read=GetCaretPos, write=SetCaretPos};

Properties

Type Visibility Source Unit Parent
property public
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TCustomMemo

Description

Indicates the position of the caret in the client area of the memo.

Use CaretPos to determine the coordinates of the cursor. CaretPos defines a location onscreen, in characters, with the origin in the top left corner of the memo. X specifies the horizontal coordinate of the point, Y specifies the vertical coordinate.

To determine the position of the caret in terms of characters of text only (rather than X/Y location), use the SelStart property.

See Also