Function TWPRTFDataBlock.Clear(Complete:Boolean) : TParagraph
Unit: WPRTEDefs
Class: WPRTEDefs.TWPRTFDataBlock
Parameters
-
Complete:Boolean
Returns
The type of the result value is TParagraph.
Description
This function clears the complete text. Unless the optional parameter Complete is true a new empty paragraph will be created at the beginning which will also be returend by this function.Example to create a pagnumber footer
WPRichText1.HeaderFooter.Get(wpIsFooter, wpraOnAllPages).Clear
.SetProperty(WPAT_Alignment,Integer(paralCenter))
.Append(wpoPageNumber)
.Append('/')
.Append(wpoNumPages);
WPRichText1.ReformatAll();