Creates paragraph alignment (justification) element for a WordprocessingML document.
The jc element specifies the horizontal alignment of all text in the paragraph.
Reference: http://officeopenxml.com/WPalignment.php
<xsd:complexType name="CT_Jc"> <xsd:attribute name="val" type="ST_Jc" use="required"/></xsd:complexType> Copy
<xsd:complexType name="CT_Jc"> <xsd:attribute name="val" type="ST_Jc" use="required"/></xsd:complexType>
new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun("Centered text")],}); Copy
new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun("Centered text")],});
Creates paragraph alignment (justification) element for a WordprocessingML document.
The jc element specifies the horizontal alignment of all text in the paragraph.
Reference: http://officeopenxml.com/WPalignment.php
XSD Schema