DocumentBuilderUnderline Property |
Namespace: Aspose.Words
Document doc = new Document(); DocumentBuilder builder = new DocumentBuilder(doc); // Set a new style for our underline builder.Underline = Underline.Dash; // Same object as DocumentBuilder.Font.Underline Assert.AreEqual(builder.Underline, builder.Font.Underline); Assert.AreEqual(Underline.Dash, builder.Font.Underline); // These properties will be applied to the underline as well builder.Font.Color = Color.Blue; builder.Font.Size = 32; builder.Writeln("Underlined text."); doc.Save(ArtifactsDir + "DocumentBuilder.InsertUnderline.docx");