underline property

DocumentBuilder.underline property

Gets/sets underline type for the current font.

get underline(): Aspose.Words.Underline

Examples

Shows how to format text inserted by a document builder.

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

builder.underline = aw.Underline.Dash;
builder.font.color = "#0000FF";
builder.font.size = 32;

// The builder applies formatting to its current paragraph and any new text added by it afterward.
builder.writeln("Large, blue, and underlined text.");

doc.save(base.artifactsDir + "DocumentBuilder.InsertUnderline.docx");

See Also