EControl Syntax Editor SDK
TCustomSyntaxMemo.InsertTextBlock Method

Inserts multi-line text block to the specified (caret) position.

function InsertTextBlock(Block: TecStrings; CarPos: TPoint): integer;

Each line of the block is inserted independently. First line is inserted at the caret position, second line is inserted to position Point(CarPos.X, CarPos.Y + 1), etc.

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