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.