WPTools Manual



Search


(press enter to search)

Function TWPRTFDataCollectionBase.InsertRTFData(Source:TWPRTFDataBlock; Dest:TWPRTFDataBlock; DestPar:TParagraph; DestPosInPar:Integer; LastPosInPar:Integer; SplitDestPar:Boolean; UseFirstLoadedParProps:Boolean) : TParagraph

Unit: WPRTEDefs
Class: WPRTEDefs.TWPRTFDataCollectionBase

Parameters

Returns

The type of the result value is TParagraph.

Description

This function moves the text from the source RTFDate to the given position of the destination RTFData. After the text has been moved it deletes the source RTFData. Both RTFData must be hosted by the same TWPRTFDataCollectionBase.
This function returns the first position after the inserted text. LastPosInPar is is the position, the result value is the paragraph.
The optional parameter "SplitDestPar" controls if the destination paragraph should be splitted and the text is inserted witin the paragraph parts.
If the Source text consists of only one paragraph this text is inserted into the destination paragraph without the transfer of any paragraph attributes.