public void Underlines()
{
Document doc = new Document();
//ExStart
//ExFor:Font.Underline
//ExFor:Font.UnderlineColor
//ExSummary:Shows how use the underline character formatting properties.
Run run = new Run(doc, "Hello");
run.Font.Underline = Underline.Dotted;
run.Font.UnderlineColor = Color.Red;
//ExEnd
}