Add outline level to paragraph style

This commit is contained in:
fmuscolino
2019-02-13 17:16:45 +01:00
parent 4fd2b6f1d3
commit 32646f8806
2 changed files with 18 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import {
KeepNext,
LeftTabStop,
MaxRightTabStop,
OutlineLevel,
ParagraphProperties,
Spacing,
ThematicBreak,
@ -34,6 +35,11 @@ export class ParagraphStyle extends Style {
return this;
}
public outlineLevel(level: string): ParagraphStyle {
this.paragraphProperties.push(new OutlineLevel(level));
return this;
}
public addRunProperty(property: XmlComponent): ParagraphStyle {
this.runProperties.push(property);
return this;