underlineColor property

Font.underlineColor property

Gets or sets the color of the underline applied to the font.

get underlineColor(): string

Examples

Shows how to configure the style and color of a text underline.

let doc = new aw.Document();
let builder = new aw.DocumentBuilder(doc);

builder.font.underline = aw.Underline.Dotted;
builder.font.underlineColor = "#FF0000";

builder.writeln("Underlined text.");

doc.save(base.artifactsDir + "Font.Underlines.docx");

See Also