NativeExcel2 for .Net Developer's Reference

IPageSetup.BottomMargin Property

Gets or sets the size of the bottom margin, in inches.

[Visual Basic]
PropertyBottomMarginAsDouble
[C#]
doubleBottomMargin{get;set;}
[C++]
__propertydoubleget_BottomMargin();
__propertyvoidset_BottomMargin(double);
[JScript]
functiongetBottomMargin():double
functionsetBottomMargin(double);

Property Value

Double. Size of the bottom margin, in inches.

Example

This example set the bottom margin of sheet one to 1/2 inches.

[C#]
book.Worksheets[1].PageSetup.BottomMargin = 0.5;
[VisualBasic]
book.Worksheets(1).PageSetup.BottomMargin = 0.5
[C++]
book->Worksheets->Item[1]->PageSetup->BottomMargin = 0.5;

See Also

IPageSetup Interface | NativeExcel Namespace | HeaderMargin | FooterMargin | TopMargin | LeftMargin | RightMargin | PageSetup Property