Files
docx-js/ts/docx/paragraph/border.ts
2017-09-22 14:46:19 +01:00

24 lines
492 B
TypeScript

// http://officeopenxml.com/WPborders.php
import { Attributes, XmlComponent } from "../xml-components";
class Border extends XmlComponent {
constructor() {
super("w:bottom");
this.root.push(new Attributes({
color: "auto",
space: "1",
val: "single",
sz: "6",
}));
}
}
export class ThematicBreak extends XmlComponent {
constructor() {
super("w:pBdr");
this.root.push(new Border());
}
}