VegaRise.NET
Back to DOM

HorizontalAlignmentEnum

Definition

Namespace
DOM.Enums
Assembly
DOM.dll

The possible horizontal alignment options for text and other elements.

Remarks

A simplified three-value variant used for basic alignment scenarios where the extra values from (Inside, Outside) are not needed. HorizontalAlignmentValues

Examples

csharp
1// 1. Left-aligned
2var a = HorizontalAlignment.Left;
3
csharp
1// 2. Centered
2var a = HorizontalAlignment.Center;
3
csharp
1// 3. Right-aligned
2var a = HorizontalAlignment.Right;
3
csharp
1// 4. Use when no facing-page rules are needed
2var a = isCentered ? HorizontalAlignment.Center : HorizontalAlignment.Left;
3

Fields

Center

Center horizontally.

Left

Align to the left of the container.

Right

Align to the right of the container.

VegaRiseVDocs.NET

Reset Password

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

Remember your password? Sign in