TParagraph API

<< Click to Display Table of Contents >>

Navigation:  Programming > Create text under program control > Paragraphs >

TParagraph API

This object stores the text. It is organized in a linked list (NextPar/PrevPar) starting from TRTFData.FirstPar. Paragraphs can also contain sub-paragraphs (ChildPar).

 

Similar to WPTools Version 4 tables cells are handled as paragraphs. In contrast to previous versions, WPTools ∞ handles child paragraphs to support multiple paragraphs in the one table cell. Even tables can be inside a table cell - (but they will always start under, and not beside the normal text since they always start on a new line.)

 

Since WPTools 8 there is the property TemplatePar within TParagraph. It is used only by the tables created the new dynamic table feature. Using template paragraphs, the method GridUpdate can be used to (re)create a table using a definition stored in the paragraph list starting with TemplatePar. This feature should only be used with the TWPTableProducer component.

 

New: Many methods now return a reference to the current TParagraph. This makes it possible to call the methods in compact syntax:

 

par.Append('Some text').Append(' some more text'). ...

 

Here we list the most important properties and methods.