Add bold and italics to character style

This commit is contained in:
fmuscolino
2019-02-26 17:28:13 +01:00
parent 4580a65a84
commit 1b336785b4
2 changed files with 58 additions and 0 deletions

View File

@ -29,6 +29,14 @@ export class CharacterStyle extends Style {
return this.addRunProperty(new formatting.Color(color));
}
public bold(): CharacterStyle {
return this.addRunProperty(new formatting.Bold());
}
public italics(): CharacterStyle {
return this.addRunProperty(new formatting.Italics());
}
public underline(underlineType?: string, color?: string): CharacterStyle {
return this.addRunProperty(new formatting.Underline(underlineType, color));
}