Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions OpenXmlFormats/Wordprocessing/Run.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1641,13 +1641,12 @@ public ST_Jc val
public enum ST_Jc
{

left,
start,


center,


right,
end,


both,
Expand All @@ -1669,6 +1668,12 @@ public enum ST_Jc


thaiDistribute,


left,


right
}


Expand Down
3 changes: 3 additions & 0 deletions ooxml/Util/EnumConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ public static ST_Jc ValueOf(ParagraphAlignment val)
case ParagraphAlignment.MEDIUM_KASHIDA: return ST_Jc.mediumKashida;
case ParagraphAlignment.NUM_TAB: return ST_Jc.numTab;
case ParagraphAlignment.RIGHT: return ST_Jc.right;
case ParagraphAlignment.LEFT: return ST_Jc.left;
case ParagraphAlignment.START: return ST_Jc.start;
case ParagraphAlignment.END: return ST_Jc.end;
case ParagraphAlignment.THAI_DISTRIBUTE: return ST_Jc.thaiDistribute;
default: return ST_Jc.left;
}
Expand Down
8 changes: 5 additions & 3 deletions ooxml/XWPF/Usermodel/ParagraphAlignment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,18 @@ public enum ParagraphAlignment
{
//YK: TODO document each alignment option

LEFT = (1),
START = (1),
CENTER = (2),
RIGHT = (3),
END = (3),
BOTH = (4),
MEDIUM_KASHIDA = (5),
DISTRIBUTE = (6),
NUM_TAB = (7),
HIGH_KASHIDA = (8),
LOW_KASHIDA = (9),
THAI_DISTRIBUTE = (10)
THAI_DISTRIBUTE = (10),
LEFT = (11),
RIGHT = (12)

//private int value;

Expand Down
Loading