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.

VegaRiseVDocs.NET

Reset Password

Enter your email and we'll send you a link to reset your password.

Remember your password? Sign in