VegaRise.NET
Back to DOM

VerticalAlignmentEnum

Definition

Namespace
DOM.Enums
Assembly
DOM.dll

The possible vertical alignment options for text and other elements.

Remarks

A simplified three-value variant used for basic vertical alignment scenarios where the extended values from are not needed. VerticalAlignmentValues

Examples

csharp
1// 1. Top-aligned
2var a = VerticalAlignment.Top;
3
csharp
1// 2. Middle-aligned
2var a = VerticalAlignment.Middle;
3
csharp
1// 3. Bottom-aligned
2var a = VerticalAlignment.Bottom;
3
csharp
1// 4. Conditional alignment
2var a = isTitlePage ? VerticalAlignment.Middle : VerticalAlignment.Top;
3

Fields

Bottom

Bottom-aligned.

Middle

Vertically centered.

Top

Top-aligned.

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.