made return values for methods
This commit is contained in:
@ -30,77 +30,77 @@ export class Paragraph {
|
|||||||
this.p.push(new TextRun(text));
|
this.p.push(new TextRun(text));
|
||||||
}
|
}
|
||||||
|
|
||||||
addText(run: TextRun) {
|
addText(run: TextRun): Paragraph {
|
||||||
this.p.push(run);
|
this.p.push(run);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
heading1() {
|
heading1(): Paragraph {
|
||||||
this.properties.push(new Style("Heading1"));
|
this.properties.push(new Style("Heading1"));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
heading2() {
|
heading2(): Paragraph {
|
||||||
this.properties.push(new Style("Heading2"));
|
this.properties.push(new Style("Heading2"));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
heading3() {
|
heading3(): Paragraph {
|
||||||
this.properties.push(new Style("Heading3"));
|
this.properties.push(new Style("Heading3"));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
heading4() {
|
heading4(): Paragraph {
|
||||||
this.properties.push(new Style("Heading4"));
|
this.properties.push(new Style("Heading4"));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
heading5() {
|
heading5(): Paragraph {
|
||||||
this.properties.push(new Style("Heading5"));
|
this.properties.push(new Style("Heading5"));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
title() {
|
title(): Paragraph {
|
||||||
this.properties.push(new Style("Title"));
|
this.properties.push(new Style("Title"));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
center() {
|
center(): Paragraph {
|
||||||
this.properties.push(new Alignment("center"));
|
this.properties.push(new Alignment("center"));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
left() {
|
left(): Paragraph {
|
||||||
this.properties.push(new Alignment("left"));
|
this.properties.push(new Alignment("left"));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
right() {
|
right(): Paragraph {
|
||||||
this.properties.push(new Alignment("right"));
|
this.properties.push(new Alignment("right"));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
justified() {
|
justified(): Paragraph {
|
||||||
this.properties.push(new Alignment("both"));
|
this.properties.push(new Alignment("both"));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
thematicBreak() {
|
thematicBreak(): Paragraph {
|
||||||
this.properties.push(new ThematicBreak());
|
this.properties.push(new ThematicBreak());
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
pageBreak() {
|
pageBreak(): Paragraph {
|
||||||
this.properties.push(new PageBreak());
|
this.properties.push(new PageBreak());
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
addTabStop(tabStop: TabStop) {
|
addTabStop(tabStop: TabStop): Paragraph {
|
||||||
this.properties.push(tabStop);
|
this.properties.push(tabStop);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
bullet() {
|
bullet(): Paragraph {
|
||||||
this.properties.push(new Style("ListParagraph"));
|
this.properties.push(new Style("ListParagraph"));
|
||||||
this.properties.push(new NumberProperties());
|
this.properties.push(new NumberProperties());
|
||||||
return this;
|
return this;
|
||||||
|
Reference in New Issue
Block a user