FMX.Memo.TCustomMemoModel.TextPosToPos
Delphi
function TextPosToPos(const APos: Integer): TCaretPosition;
C++
Fmx::Text::TCaretPosition __fastcall TextPosToPos(const int APos);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Memo.pas FMX.Memo.hpp |
FMX.Memo | TCustomMemoModel |
Description
Converts Apos
into the Line/Pos coordinate of a character in the memo control.
TextPosToPos returns a TCaretPosition format position of a character indicated by APos
.
TextPosToPos calculates the TCaretPosition.Line line number and TCaretPosition.Pos horizontal shifting, corresponding to the APos
character count coordinate of a character in the text of the memo control. Keep in mind that APos
counts end-of-line characters.