Function TWPRTFDataCollectionBase.LoadFromStreamWithReader(Stream:TStream; Reader:TWPCustomTextReader; OnlyBody:Boolean; AfterLoadEvent:TWPIOAfterLoadWithReader) : TWPRTFDataBlock
Unit: WPRTEDefs
Class: WPRTEDefs.TWPRTFDataCollectionBase
Parameters
-
Stream:TStream Reader:TWPCustomTextReader OnlyBody:Boolean AfterLoadEvent:TWPIOAfterLoadWithReader
Returns
The type of the result value is TWPRTFDataBlock.
Description
This function uses a reader instance to load a text. If OnlyBody=true just one RTFDATA object is created which can be then either inserted at the cursor position of the current text or marked to be the new body.If the optional event reference "AfterLoadEvent" was provided the default Before and AfterLoad events will not be used.