UnderlineColor

Font.UnderlineColor property

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

public Color UnderlineColor { get; set; }

Examples

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

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

builder.Font.Underline = Underline.Dotted;
builder.Font.UnderlineColor = Color.Red;

builder.Writeln("Underlined text.");

doc.Save(ArtifactsDir + "Font.Underlines.docx");

See Also