Applies to
Declaration
procedure InsertText(Index: Integer; const NewText: WideString; CharAttr: Integer);
Description
Inserts text at a certain position in the paragraph
Parameters |
Index |
Position to start insertion. Use a large value to append the text. |
Text |
Unicode string |
CharAttr |
CharAttr is the index of the character attribute record to be used for the inserted data. Special values: 0:Use the attribute of the preceding text or the current attribute in case the paragraph is empty. -1:Use the attribute of the preceding text or the paragraph default attribute if at first position in paragraph. -2: use current writing mode (CurrAttr). -3: use the document default attribute -4: don't assign an attribute (CharAttr=0) |