Represents a text run in a WordprocessingML document.
TextRun is a convenience class that extends Run, allowing you to pass either a string or full run options. This is the most common way to add text content to a paragraph.
Reference: http://officeopenxml.com/WPtext.php
// Simple textnew TextRun("Hello World");// Formatted textnew TextRun({ text: "Bold Text", bold: true }); Copy
// Simple textnew TextRun("Hello World");// Formatted textnew TextRun({ text: "Bold Text", bold: true });
Do not use this method. It is only used internally by the library. It will be removed in a future version.
Represents a text run in a WordprocessingML document.
TextRun is a convenience class that extends Run, allowing you to pass either a string or full run options. This is the most common way to add text content to a paragraph.
Reference: http://officeopenxml.com/WPtext.php
Example