EControl Syntax Editor SDK
TCustomSyntaxMemo.InvalidateTextRange Method

Invalidates lines occupied by the text range from StartPos to EndPos.

procedure InvalidateTextRange(StartPos: integer; EndPos: integer; UpdateHeights: Boolean);

Use StartPos and EndPos to specify bounds of the text range (zero-based). If UpdateHeights is True, heights of the invalidated lines are reseted. Use this method to update dynamically highlighted text, for example, when user moves mouse over particular token, which style may be set in OnGetStyleEntry event handler.

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