VegaRise.NET
Back to DOM

PageOrientationEnum

Definition

Namespace
DOM.Enums
Assembly
DOM.dll

Specifies the orientation of a page.

Remarks

Used by . Portrait means taller than wide; Landscape means wider than tall. PageSetup.Orientation

Examples

csharp
1// 1. Portrait
2var ps = new PageSetup { Orientation = PageOrientation.Portrait };
3
csharp
1// 2. Landscape
2var ps = new PageSetup { Orientation = PageOrientation.Landscape };
3
csharp
1// 3. Per-section orientation
2section.PageSettings = new PageSetup { Orientation = PageOrientation.Landscape };
3
csharp
1// 4. Switch based on content width
2var o = isWideContent ? PageOrientation.Landscape : PageOrientation.Portrait;
3

Fields

Landscape

Wider than tall.

Portrait

Taller than wide.

VegaRise.NET

Sign In

Welcome back. Please sign in to your account.

Forgot password?
or

Don't have an account? Create an account

By signing in, you agree to our Terms of Service and Privacy Policy.