Represents a paragraph in a WordprocessingML document.
A paragraph is the primary unit of block-level content in a document and can contain various inline elements such as text runs, images, hyperlinks, and bookmarks.
Reference: http://officeopenxml.com/WPparagraph.php
<xsd:complexType name="CT_P"> <xsd:sequence> <xsd:element name="pPr" type="CT_PPr" minOccurs="0"/> <xsd:group ref="EG_PContent" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> <xsd:attribute name="rsidRPr" type="ST_LongHexNumber"/> <xsd:attribute name="rsidR" type="ST_LongHexNumber"/> <xsd:attribute name="rsidDel" type="ST_LongHexNumber"/> <xsd:attribute name="rsidP" type="ST_LongHexNumber"/> <xsd:attribute name="rsidRDefault" type="ST_LongHexNumber"/></xsd:complexType> Copy
<xsd:complexType name="CT_P"> <xsd:sequence> <xsd:element name="pPr" type="CT_PPr" minOccurs="0"/> <xsd:group ref="EG_PContent" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> <xsd:attribute name="rsidRPr" type="ST_LongHexNumber"/> <xsd:attribute name="rsidR" type="ST_LongHexNumber"/> <xsd:attribute name="rsidDel" type="ST_LongHexNumber"/> <xsd:attribute name="rsidP" type="ST_LongHexNumber"/> <xsd:attribute name="rsidRDefault" type="ST_LongHexNumber"/></xsd:complexType>
// Simple paragraph with textnew Paragraph("Hello World");// Paragraph with optionsnew Paragraph({ children: [new TextRun("Hello"), new TextRun({ text: "World", bold: true })], alignment: AlignmentType.CENTER,}); Copy
// Simple paragraph with textnew Paragraph("Hello World");// Paragraph with optionsnew Paragraph({ children: [new TextRun("Hello"), new TextRun({ text: "World", bold: true })], alignment: AlignmentType.CENTER,});
Readonly
Marker property identifying this as a FileChild
Do not use this method. It is only used internally by the library. It will be removed in a future version.
Represents a paragraph in a WordprocessingML document.
A paragraph is the primary unit of block-level content in a document and can contain various inline elements such as text runs, images, hyperlinks, and bookmarks.
Reference: http://officeopenxml.com/WPparagraph.php
XSD Schema
Example