TCustomRichViewEdit.InsertPageBreak

<< Click to display table of contents >>

TCustomRichViewEdit.InsertPageBreak

Inserts explicit page break at the position of caret.

procedure InsertPageBreak

(introduced in version 1.2)

The method deselects the document before performing its work.

If the caret is not at the beginning of some item which is always displayed from the new line (see IsFromNewLine), the method breaks the current line (just like if user pressed  Enter  key).

The method sets "explicit page break" flag for the item at the position of caret (see PageBreaksBeforeItems).

Method type: editstyle editing-style.

 

See also:

RemoveCurrentPageBreak.

See also properties of RichView:

PageBreaksBeforeItems;

Options (rvoShowPageBreaks).

See also properties of RVStyle:

PageBreakColor.