Skip to content

Commit a1bae29

Browse files
committed
Justify added
1 parent 945292c commit a1bae29

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

FileFormat.Words/OpenXML.Words.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ public enum ParagraphAlignment
2525
{
2626
Left,
2727
Center,
28-
Right
28+
Right,
29+
Justify
2930
}
3031
private OwDocument()
3132
{
@@ -216,7 +217,7 @@ private WP.JustificationValues MapAlignmentToJustification(ParagraphAlignment al
216217
case ParagraphAlignment.Right:
217218
return WP.JustificationValues.Right;
218219
default:
219-
return WP.JustificationValues.Left;
220+
return WP.JustificationValues.Both;
220221
}
221222
}
222223

@@ -533,7 +534,7 @@ private string MapJustificationToAlignment(WP.JustificationValues justificationV
533534
case WP.JustificationValues.Right:
534535
return "Right";
535536
default:
536-
return "Left";
537+
return "Justify";
537538
}
538539
}
539540

0 commit comments

Comments
 (0)