VegaRise.NET
Back to DOM

VerticalTextAlignmentValuesEnum

Definition

Namespace
DOM.Enums
Assembly
DOM.dll

Specifies the vertical alignment of individual characters within their line box.

Remarks

Used by . Unlike (which aligns the whole content block on the page), this enum aligns the glyphs relative to the baseline of their line. ParagraphStyle.TextAlignment VerticalJustificationValues

Examples

csharp
1// 1. Top-aligned
2var s = new ParagraphStyle { TextAlignment = VerticalTextAlignmentValues.top };
3
csharp
1// 2. Center-aligned
2var s = new ParagraphStyle { TextAlignment = VerticalTextAlignmentValues.center };
3
csharp
1// 3. Baseline-aligned
2var s = new ParagraphStyle { TextAlignment = VerticalTextAlignmentValues.baseline };
3
csharp
1// 4. Bottom-aligned
2var s = new ParagraphStyle { TextAlignment = VerticalTextAlignmentValues.bottom };
3

Fields

auto

Automatic alignment.

baseline

Baseline-aligned.

bottom

Bottom-aligned.

center

Center-aligned.

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.