Function TWPCustomRtfEdit.GetLogParPos(cppos:Integer; par:TParagraph; posinpar:Integer) : Boolean
Unit: WPCTRMemo
Class: WPCTRMemo.TWPCustomRtfEdit
Parameters
-
cppos:Integer par:TParagraph posinpar:Integer
Returns
The type of the result value is Boolean.
Description
This function works with a cursor position which ignores any text objects, such as fields and hyperlinks. It calculates par and posinpar according to the provided position.
i := WPRichText1.GetLogCPPos;
WPRichText1.GetLogParPos( i, par, posinpar );
WPRichText1.TextCursor.MoveTo(par, posinpar);