[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IPageSetup.Orientation

Orientation Property

Orientation

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.

Declaration
PageOrientation Orientation { get; set; }
Property Orientation As PageOrientation
Examples
IPageSetup pageSetup = worksheet.PageSetup;
pageSetup.Orientation = PageOrientation.Landscape;
PageOrientation orientation = pageSetup.Orientation;