Added in the ability to create borders for paragraphs

This commit is contained in:
Noah Schechter
2018-08-19 11:59:38 -04:00
parent 7b43551148
commit 0411153832
5 changed files with 89 additions and 19 deletions

View File

@ -6,7 +6,7 @@ import { XmlComponent } from "file/xml-components";
import { Alignment } from "./formatting/alignment";
import { Bidirectional } from "./formatting/bidirectional";
import { ThematicBreak } from "./formatting/border";
import { ThematicBreak, Border } from "./formatting/border";
import { Indent } from "./formatting/indent";
import { KeepLines, KeepNext } from "./formatting/keep";
import { PageBreak, PageBreakBefore } from "./formatting/page-break";
@ -30,6 +30,10 @@ export class Paragraph extends XmlComponent {
}
}
public get Borders(): Border {
return this.properties.paragraphBorder;
}
public addRun(run: Run): Paragraph {
this.root.push(run);
return this;