Function TWPRTFDataBlock.InsertText(cpposition:Integer; text:WideString; StyleString:string) : TParagraph

Unit: WPRTEDefs
Class: WPRTEDefs.TWPRTFDataBlock

Parameters

  • cpposition:Integer
  • text:WideString
  • StyleString:string

Returns

The type of the result value is TParagraph.

Description

Inserts a text at a given position. If the text contains #13 codes new paragraphs will be created. #12 creates a new page. To change the writing mode update the property RTFData.DefaultAttr! The function returns the paragraph which was modified last.
The optional style-string (WPCSS format) will be applied to the first updated paragraph