C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,235 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
It is not having "Underline" effect to the words below. What to adjust?
RunProperties runProperties2 = run.AppendChild(new RunProperties(new RunFonts { Ascii = "Times New Roman" })); RunProperties runProperties3 = run.AppendChild(new RunProperties(new FontSize { Val = new StringValue("24") })); RunProperties runProperties = run.AppendChild(new RunProperties(new Underline())); run.AppendChild(new Text("Personal Details"));
Try this adjustment:
run.AppendChild( new RunProperties( new RunFonts { Ascii = "Times New Roman" },
new FontSize { Val = new StringValue("24") },
new Underline( ) ));
run.AppendChild( new Text("Personal Details"));