跳到主要内容

PageOrientation

The page orientation type.

Type

Enumeration

Values

  • "xlLandscape"
  • "xlPortrait"

Example

This example sets the page orientation to portrait.

worksheet.SetPageOrientation("xlPortrait");