public void InsertHyperlink()
{
//ExStart
//ExFor:DocumentBuilder.InsertHyperlink
//ExFor:Font.ClearFormatting
//ExFor:Font.Color
//ExFor:Font.Underline
//ExFor:Underline
//ExId:DocumentBuilderInsertHyperlink
//ExSummary:Inserts a hyperlink into a document using DocumentBuilder.
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(MyDir + @"\Artifacts\DocumentBuilder.InsertHyperlink.doc");
//ExEnd
}