added #SubScript and #SuperScript methods to ParagraphStyle

This commit is contained in:
felipe
2017-03-12 17:52:03 +01:00
parent 8c6cd012e7
commit 7f4d1bf3e7
3 changed files with 41 additions and 0 deletions

View File

@ -111,6 +111,16 @@ export class ParagraphStyle extends Style {
return this;
}
public subScript(): ParagraphStyle {
this.addRunProperty(new formatting.SubScript());
return this;
}
public superScript(): ParagraphStyle {
this.addRunProperty(new formatting.SuperScript());
return this;
}
public underline(underlineType?: string, color?: string): ParagraphStyle {
this.addRunProperty(new formatting.Underline(underlineType, color));
return this;