TSRichViewEdit.SetRVMargins

Top  Previous  Next

Assigns margins specified in RichViewEdit.DocParameters to margins of this TSRichViewEdit component.

procedure SetRVMargins(CompleteFormat: Boolean = True);

This method must be called after you change properties of RichViewEdit.DocParameters.

You can also call itafter calling RichViewEdit's methods that may change its DocParameters:

LoadRVF, LoadRVFFromStream,

LoadRTF, LoadRTFFromStream,

but it is recommended to call Format instead.

If you use RichViewActions with TSRichViewEdit, call this method in TRVAControlPanel.OnMarginsChanged event.

If CompleteFormat = True, this method formats the document by calling RichViewEdit.Format. This is necessary if the document was not formatted when this method is called (for example, after loading RVF or RTF file).

If CompleteFormat = False, this method formats the document by calling RichViewEdit.Reformat, keeping the selection and the caret position. This value can be used only if the document was already formatted before calling this method.


ScaleRichView © Ilya Zelensky & Sergey Tkachenko