Files
docx-js/ts/docx/paragraph.ts
2016-03-28 03:55:33 +01:00

12 lines
328 B
TypeScript

import {P, Attributes, ParagraphProperties, Run} from "./xml-components/p";
export class Paragraph {
private p: Array<P>;
constructor(text?: string) {
this.p = new Array<P>();
this.p.push(new Attributes());
this.p.push(new ParagraphProperties());
this.p.push(new Run(text));
}
}