rvico TRichView Reference | TRichView

TCustomRichView.PageBreaksBeforeItems

Top  Previous  Next

Specifies if the Index-th item must start a new page when printing

property PageBreaksBeforeItems[Index: Integer]: Boolean

(Introduced in version 1.2)

Set PageBreaksBeforeItems[ItemNo] to True if you want the ItemNo-th item to start a new page. This assignment forces the item to start a new paragraph.

If this item already starts a new paragraph (you can check it using IsParaStart), you do not need to reformat document. If this items is inside paragraph (even if it is displayed from new line – IsFromNewLine), you need to reformat RichView after this assignment (using Format).

RichView never prints blank pages. So, for example, PageBreaksBeforeItems[0] has no effect (because it will start a new page in any case).

Assigning False to this property just removes explicit page break without a side effect – reformatting is not needed.

Editor has additional methods for working with explicit page breaks.

See also:

Options (rvoShowPageBreaks).

See also methods:

AssignSoftPageBreaks.

See also properties and events of TRVStyle:

PageBreakColor;
OnDrawPageBreak.

See also methods of TRichViewEdit:

InsertPageBreak;
RemoveCurrentPageBreak.


RichView © Sergey Tkachenko