add an #underline method to ParagraphStyle

This commit is contained in:
felipe
2017-03-09 13:19:50 +01:00
parent 766bcabcb8
commit ac7799a875
2 changed files with 52 additions and 0 deletions

View File

@ -100,6 +100,11 @@ export class ParagraphStyle extends Style {
return this;
}
public underline(underlineType?: string, color?: string): ParagraphStyle {
this.addRunProperty(new formatting.Underline(underlineType, color));
return this;
}
public color(color: string): ParagraphStyle {
this.addRunProperty(new formatting.Color(color));
return this;