Function TWPRTFDataBlock.LastParWithType(ParType:TWPParagraphType; StartPar:TParagraph) : TParagraph

Unit: WPRTEDefs
Class: WPRTEDefs.TWPRTFDataBlock

Parameters

Returns

The type of the result value is TParagraph.

Description

This function locates the last paragraph of a block starting with StartPar which has the given type ParType. If no paragraph with that type was found, the result will be nil. If StartPar = nil the function will start at the first paragraph