Gets or sets the size of the right margin, in inches.
[Visual Basic] Property RightMargin As Double [C#] double RightMargin { get; set; } [C++] __property double get_RightMargin(); __property void set_RightMargin(double ); [JScript] function get RightMargin() : double function set RightMargin(double);
Double. Size of the right margin, in inches.
This example set the right margin of sheet one to 1/2 inches.
[C#]
book.Worksheets[1].PageSetup.RightMargin = 0.5;
[Visual Basic]
book.Worksheets(1).PageSetup.RightMargin = 0.5
[C++]
book->Worksheets->Item[1]->PageSetup->RightMargin = 0.5;
IPageSetup Interface | NativeExcel Namespace | HeaderMargin | FooterMargin | BottomMargin | TopMargin | LeftMargin | PageSetup Property