Click or drag to resize
Underline Enumeration
Indicates type of the underline applied to a font.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.9
Syntax
public enum Underline
Members
  Member nameValueDescription
None0
Single1
Words2
Double3
Dotted4
Thick6
Dash7
DashLong39
DotDash9
DotDotDash10
Wavy11
DottedHeavy20
DashHeavy23
DashLongHeavy55
DotDashHeavy25
DotDotDashHeavy26
WavyHeavy27
WavyDouble43
Examples
Inserts a hyperlink into a document using DocumentBuilder.
[C#]

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

builder.Write("Please make sure to visit ");

// Specify font formatting for the hyperlink.
builder.Font.Color = Color.Blue;
builder.Font.Underline = Underline.Single;
// Insert the link.
builder.InsertHyperlink("Aspose Website", "http://www.aspose.com", false);

// Revert to default formatting.
builder.Font.ClearFormatting();

builder.Write(" for more information.");

doc.Save(ArtifactsDir + "DocumentBuilder.InsertHyperlink.doc");
See Also