FMX.Memo.TCustomMemoModel.PosToTextPos

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function PosToTextPos(const APostion: TCaretPosition): Integer;

C++

int __fastcall PosToTextPos(const Fmx::Text::TCaretPosition &APostion);

Properties

Type Visibility Source Unit Parent
function public
FMX.Memo.pas
FMX.Memo.hpp
FMX.Memo TCustomMemoModel

Description

Converts a Line/Pos coordinate of a character into a number of this character in the text of the memo.

PosToTextPos returns an integer representing a position of the character specified by APosition in the memo control. The APosition position is specified in the TCaretPosition format which uses the Line number and Pos horizontal shifting of the character in the memo control. Keep in mind that PosToTextPos calculates the character number counting end-of-line characters.

See Also