Applies to

RichTextEdit controls


The RightMargin property specifies the size in inches of the right margin on the printed page.


In a painter

To set the right margin:

  • Enter the desired size in inches in the Right Margin field of the Document tab page of the RichTextEdit control's property page.

In scripts

The RightMargin property takes a long value.

The following line sets the right margin of a RichTextEdit to 1 inch.

rte_1.RightMargin = 1