EControl Syntax Editor SDK
TSyntMemoStrings.StrToCaret Method

Converts index of the character in text to the position of the caret in TPoint format.

function StrToCaret(p: integer): TPoint;

Result.Y is considered as a zero-based number of the line in text. 

Result.X is considered as a zero-based position of the character in the line.

Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!