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,976 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I expect to have two lines produced by the following. But there is still no line break between the two parts.
RunProperties runProperties3 = run.AppendChild(new RunProperties(new FontSize { Val = new StringValue("24") })); run.AppendChild(new Text(txt)); RunProperties runProperties4 = run.AppendChild(new RunProperties(new FontSize { Val = new StringValue("16") })); run.AppendChild(new Text("\rPeter Wong"));
If you remove that \r
and add this above your last AppendChild
call it should add one:
run.AppendChild(new Break());