WPTools Manual



Search


(press enter to search)

Function TWPRTFDataCollectionBase.LoopAllPar(param:TObject; CallBack:TWPOnLoopAllParCallback; OnlyFromDataBlock:TWPRTFDataBlock) : Integer

Unit: WPRTEDefs
Class: WPRTEDefs.TWPRTFDataCollectionBase

Parameters

  • param:TObject
  • CallBack:TWPOnLoopAllParCallback
  • OnlyFromDataBlock:TWPRTFDataBlock

Returns

The type of the result value is Integer.

Description

This procedure can be used to loop through all paragraphs in this text. This includes the header and footer, too! The definition for the callback is: procedure LoopPar( RTFData : TWPRTFDataCollectionBase; RTFDataBlock : TWPRTFDataBlock; par : TParagraph; Param : TObject)

Overloaded Methods

Function TWPRTFDataCollectionBase.LoopAllPar(param:TObject; CallBack:TWPGlobalOnLoopAllParCallback; OnlyFromDataBlock:TWPRTFDataBlock) : Integer