add paragraph.createRun method
This commit is contained in:
@ -38,6 +38,12 @@ export class Paragraph extends XmlComponent {
|
||||
return this;
|
||||
}
|
||||
|
||||
public createRun(text: string): TextRun {
|
||||
const run = new TextRun(text);
|
||||
this.addText(run);
|
||||
return run;
|
||||
}
|
||||
|
||||
public heading1(): Paragraph {
|
||||
this.properties.push(new Style("Heading1"));
|
||||
return this;
|
||||
|
Reference in New Issue
Block a user