[]
Gets or sets a PageOrientation value that represents the portrait or landscape printing mode.
Use this property to retrieve the current page orientation configured for the worksheet's page setup.
PageOrientation Orientation { get; set; }
Property Orientation As PageOrientation
IPageSetup pageSetup = worksheet.PageSetup;
pageSetup.Orientation = PageOrientation.Landscape;
PageOrientation orientation = pageSetup.Orientation;