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.

VegaRiseVDocs.NET

Reset Password

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

Remember your password? Sign in