| FirstPar property |
Applies to
TWPRTFDataBlock
Declaration
property FirstPar: TParagraph;
Description
This property provides you with a reference to the first paragraph of the text. If the document is Empty then a new paragraph will be created the first time FirstPar is used.
Using first par you can create loop over all paragraphs:
var par : TParagraph; if not WPRichText1.ActiveText.Empty then begin par := WPRichText1.ActiveText.FirstPar; while par<>nil do begin par := par.next; end; end; |
Category
Paragraph-Reference
|
Copyright (C) by WP |