w:jc (Paragraph Justification)
Specifies the horizontal alignment of text within the paragraph (left, center, right, both, distribute).
Description
w:jc specifies the horizontal text alignment (justification) for the paragraph. It is defined in ECMA-376 Part 1 §17.3.1.13.
When applied inside w:lvl, it controls the alignment of the numbering label within its indent zone.
Attributes
| Attribute | Type | Possible Values | Description |
|---|---|---|---|
w:val |
ST_Jc |
left — align to left margin (default for LTR text) |
Left-aligned text. |
center — centred between margins |
Centred text. | ||
right — align to right margin |
Right-aligned text. | ||
both — full justification (stretch to both margins) |
Justified text. | ||
distribute — distribute characters evenly (CJK) |
Character-distributed text. | ||
highKashida, lowKashida, mediumKashida — Arabic kashida justification variants |
Arabic-specific justification. | ||
thaiDistribute — Thai character distribution |
Thai-specific distribution. | ||
numTab — alignment for numbered list labels |
Numbering label alignment (used inside w:lvl). |
Examples
<w:pPr>
<w:jc w:val="center"/>
</w:pPr>
new ParagraphProperties(
new Justification { Val = JustificationValues.Center });