NativeExcel for .Net Developer's Reference

IPageSetup.Order Property

Gets or sets the order in which worksheet pages are numbered.

[Visual Basic]
PropertyOrderAsXlOrder
[C#]
XlOrderOrder{get;set;}
[C++]
__propertyXlOrderget_Order();
__propertyvoidset_Order(XlOrder);
[JScript]
functiongetOrder():XlOrder
functionsetOrder(XlOrder);

Property Value

Order can be one of XlOrder values. Default value is XlOrder.xlDownThenOver.

Example

This example sets the first sheet pages to be ordered over then down.

[C#]
book.Worksheets[1].PageSetup.Order = XlOrder.xlOverThenDown;
[VisualBasic]
book.Worksheets(1).PageSetup.Order = XlOrder.xlOverThenDown
[C++]
book->Worksheets->Item[1]->PageSetup->Order = XlOrder::xlOverThenDown;

See Also

IPageSetup Interface | NativeExcel Namespace | XlOrder Enumeration | PageSetup Property