Table of Contents

TTMSFNCMemo.PosToTextPos Method

Converts a caret position to a text position.

API unit family: TMSFNCMemo Declaring type: TTMSFNCMemo Inherited from: TTMSFNCCustomMemo

Syntax

function PosToTextPos(const APosition: TTMSFNCMemoCaretPosition): Integer;

Parameters

Name Description
APosition The caret position to convert.

Returns

The zero-based text position for the caret position.