add fluent interface for defining abstract numbering levels

This commit is contained in:
felipe
2017-03-08 18:03:39 +01:00
parent 1fe7ab90f2
commit 4b300e4def
2 changed files with 31 additions and 38 deletions

View File

@ -88,11 +88,13 @@ export class Level extends XmlComponent {
delete this.runProperties;
}
public addParagraphProperty(property: XmlComponent): void {
public addParagraphProperty(property: XmlComponent): Level {
this.paragraphProperties.push(property);
return this;
}
public addRunProperty(property: XmlComponent): void {
public addRunProperty(property: XmlComponent): Level {
this.runProperties.push(property);
return this;
}
}