Represents a run of text with uniform formatting in a WordprocessingML document.
A run is the lowest level unit of text in a paragraph. All content within a run shares the same formatting properties (bold, italic, font, size, etc.).
Reference: http://officeopenxml.com/WPtext.php
<xsd:complexType name="CT_R"> <xsd:sequence> <xsd:group ref="EG_RPr" minOccurs="0"/> <xsd:group ref="EG_RunInnerContent" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> <xsd:attribute name="rsidRPr" type="ST_LongHexNumber"/> <xsd:attribute name="rsidDel" type="ST_LongHexNumber"/> <xsd:attribute name="rsidR" type="ST_LongHexNumber"/></xsd:complexType> Copy
<xsd:complexType name="CT_R"> <xsd:sequence> <xsd:group ref="EG_RPr" minOccurs="0"/> <xsd:group ref="EG_RunInnerContent" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> <xsd:attribute name="rsidRPr" type="ST_LongHexNumber"/> <xsd:attribute name="rsidDel" type="ST_LongHexNumber"/> <xsd:attribute name="rsidR" type="ST_LongHexNumber"/></xsd:complexType>
// Simple run with textnew Run({ text: "Hello World" });// Bold and italic runnew Run({ text: "Formatted", bold: true, italics: true });// Run with page numbernew Run({ children: [PageNumber.CURRENT] }); Copy
// Simple run with textnew Run({ text: "Hello World" });// Bold and italic runnew Run({ text: "Formatted", bold: true, italics: true });// Run with page numbernew Run({ children: [PageNumber.CURRENT] });
Do not use this method. It is only used internally by the library. It will be removed in a future version.
Represents a run of text with uniform formatting in a WordprocessingML document.
A run is the lowest level unit of text in a paragraph. All content within a run shares the same formatting properties (bold, italic, font, size, etc.).
Reference: http://officeopenxml.com/WPtext.php
XSD Schema
Example