VegaRise.NET
Back to DOM

JustificationValuesEnum

Definition

Namespace
DOM.Enums
Assembly
DOM.dll

Specifies the justification (horizontal alignment) of text inside a paragraph or cell.

Remarks

The values include the standard alignments (Left, Center, Right, Both) plus the script-aware (Start, End), the Kashida-extended Arabic values (MediumKashida, HighKashida, LowKashida), the tabulated NumTab, and the ThaiDistribute.

Examples

csharp
1// 1. Left align
2var j = JustificationValues.Left;
3
csharp
1// 2. Justify (both)
2var j = JustificationValues.Both;
3
csharp
1// 3. Arabic Kashida justification
2var j = JustificationValues.MediumKashida;
3
csharp
1// 4. Apply to a paragraph style
2var style = new ParagraphStyle { Justification = JustificationValues.Both };
3

Fields

Both

Justified on both sides.

Center

Center alignment.

Distribute

Distribute across all characters.

End

End-aligned (right for LTR, left for RTL).

HighKashida

Arabic Kashida justification (high).

Left

Left alignment.

LowKashida

Arabic Kashida justification (low).

MediumKashida

Arabic Kashida justification (medium).

NumTab

Tabulated justification.

Right

Right alignment.

Start

Start-aligned (left for LTR, right for RTL).

ThaiDistribute

Thai distribute justification.

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.