Skip to main content

PageOrientation

The page orientation type.

Type​

Enumeration

Values​

  • "xlLandscape"
  • "xlPortrait"

Example​

Set the page orientation to portrait.

// How to change an orientation of a page.

// Set a page orientation to portrait.

worksheet.SetPageOrientation("xlPortrait");