allow Run#underline to take style and color arguments

This commit is contained in:
felipe
2017-03-12 17:28:52 +01:00
parent db24f67e34
commit d85c6ce56a
2 changed files with 22 additions and 2 deletions

View File

@ -29,8 +29,8 @@ export class Run extends XmlComponent {
return this;
}
public underline(): Run {
this.properties.push(new Underline());
public underline(underlineType?: string, color?: string): Run {
this.properties.push(new Underline(underlineType, color));
return this;
}