Add Right and Center tab stops

This commit is contained in:
Dolan
2017-09-19 12:51:37 +01:00
parent 492face7ab
commit da8405b5b9
2 changed files with 26 additions and 4 deletions

View File

@ -13,7 +13,7 @@ import { PageBreak } from "./page-break";
import { ParagraphProperties } from "./properties";
import { ISpacingProperties, Spacing } from "./spacing";
import { Style } from "./style";
import { LeftTabStop, MaxRightTabStop } from "./tab-stop";
import { CenterTabStop, LeftTabStop, MaxRightTabStop, RightTabStop } from "./tab-stop";
import { NumberProperties } from "./unordered-list";
export * from "./formatting";
@ -117,6 +117,16 @@ export class Paragraph extends XmlComponent {
return this;
}
public rightTabStop(position: number): Paragraph {
this.properties.push(new RightTabStop(position));
return this;
}
public centerTabStop(position: number): Paragraph {
this.properties.push(new CenterTabStop(position));
return this;
}
public bullet(): Paragraph {
this.properties.push(new Style("ListParagraph"));
this.properties.push(new NumberProperties(1, 0));