Files
docx-js/ts/docx/paragraph.ts

12 lines
328 B
TypeScript
Raw Normal View History

2016-03-28 03:55:33 +01:00
import {P, Attributes, ParagraphProperties, Run} from "./xml-components/p";
2016-03-28 00:53:24 +01:00
export class Paragraph {
2016-03-28 03:55:33 +01:00
private p: Array<P>;
2016-03-28 00:53:24 +01:00
2016-03-28 03:55:33 +01:00
constructor(text?: string) {
this.p = new Array<P>();
this.p.push(new Attributes());
this.p.push(new ParagraphProperties());
this.p.push(new Run(text));
2016-03-27 02:28:47 +01:00
}
}