Links
EControl Syntax Editor SDK
TSyntAutoReplace.CorrectAtPos Method (integer, Integer)

Replaces a word at specified position.

function CorrectAtPos(aPos: integer; var Delta: Integer): Boolean; overload;

For word at aPos position in Syntax Memo text looks for auto-replace item in Items and if search is successful replaces it. 

Returns Delta which is a difference between Replace string and replaced string: 

Delta = Replace - Replaced. 

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