Creates paragraph spacing element for a WordprocessingML document.
The spacing element specifies the spacing between lines and paragraphs.
Reference: http://officeopenxml.com/WPspacing.php
<xsd:complexType name="CT_Spacing"> <xsd:attribute name="before" type="s:ST_TwipsMeasure" use="optional"/> <xsd:attribute name="beforeLines" type="ST_DecimalNumber" use="optional"/> <xsd:attribute name="beforeAutospacing" type="s:ST_OnOff" use="optional"/> <xsd:attribute name="after" type="s:ST_TwipsMeasure" use="optional"/> <xsd:attribute name="afterLines" type="ST_DecimalNumber" use="optional"/> <xsd:attribute name="afterAutospacing" type="s:ST_OnOff" use="optional"/> <xsd:attribute name="line" type="ST_SignedTwipsMeasure" use="optional"/> <xsd:attribute name="lineRule" type="ST_LineSpacingRule" use="optional"/></xsd:complexType> Copy
<xsd:complexType name="CT_Spacing"> <xsd:attribute name="before" type="s:ST_TwipsMeasure" use="optional"/> <xsd:attribute name="beforeLines" type="ST_DecimalNumber" use="optional"/> <xsd:attribute name="beforeAutospacing" type="s:ST_OnOff" use="optional"/> <xsd:attribute name="after" type="s:ST_TwipsMeasure" use="optional"/> <xsd:attribute name="afterLines" type="ST_DecimalNumber" use="optional"/> <xsd:attribute name="afterAutospacing" type="s:ST_OnOff" use="optional"/> <xsd:attribute name="line" type="ST_SignedTwipsMeasure" use="optional"/> <xsd:attribute name="lineRule" type="ST_LineSpacingRule" use="optional"/></xsd:complexType>
new Paragraph({ spacing: { before: 200, after: 200, line: 360, lineRule: LineRuleType.AT_LEAST, }, children: [new TextRun("Paragraph with custom spacing")],}); Copy
new Paragraph({ spacing: { before: 200, after: 200, line: 360, lineRule: LineRuleType.AT_LEAST, }, children: [new TextRun("Paragraph with custom spacing")],});
Creates paragraph spacing element for a WordprocessingML document.
The spacing element specifies the spacing between lines and paragraphs.
Reference: http://officeopenxml.com/WPspacing.php
XSD Schema