TSRichViewEdit.SetRVMargins

<< Click to display table of contents >>

TSRichViewEdit.SetRVMargins

Assigns page properties from RichViewEdit.DocParameters to PageProperty, formats the editor.

procedure SetRVMargins(CompleteFormat: Boolean = True);

It's highly recommended to call call Format or Reformat instead of this method!

This method does the following work:

copies page properties from RichViewEdit.DocParameters to PageProperty

resets formatting for notes and text boxes (so that they will be reformatted on the next pagination)

formats headers and footers (if CompleteFormat=False, the caret position is kept in RVHeader and RVFooter)

formats RichViewEdit (if CompleteFormat=False, the caret position is kept)

(if RVNote<>nil) formats RVNote (if CompleteFormat=False, the caret position is kept)