add paragraph.createRun method

This commit is contained in:
felipe
2017-03-10 14:35:37 +01:00
parent ea647d84df
commit 8d11ec3422
2 changed files with 20 additions and 0 deletions

View File

@ -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;