Can you please help me identify which is the newline indicator in bulleted text in PPTX OpenXML ? based on this I want add newline character in my program
-Thank you
Can you please help me identify which is the newline indicator in bulleted text in PPTX OpenXML ? based on this I want add newline character in my program
-Thank you
使用休息类
因此,对于以下带有带换行符的项目符号列表的幻灯片:
请参阅从第三个项目符号到第四个项目符号显示的以下代码截图:
using DocumentFormat.OpenXml.Presentation;
using DocumentFormat.OpenXml;
using A = DocumentFormat.OpenXml.Drawing;
...
A.Run run3 = new A.Run();
A.RunProperties runProperties3 = new A.RunProperties(){ Language = "en-US", Dirty = false, SpellingError = true, SmartTagClean = false };
A.Text text3 = new A.Text();
text3.Text = "Th";
run3.Append(runProperties3);
run3.Append(text3);
A.Run run4 = new A.Run();
A.RunProperties runProperties4 = new A.RunProperties(){ Language = "en-US", Dirty = false, SmartTagClean = false };
A.Text text4 = new A.Text();
text4.Text = "";
run4.Append(runProperties4);
run4.Append(text4);
A.Break break1 = new A.Break();
A.RunProperties runProperties5 = new A.RunProperties(){ Language = "en-US", Dirty = false, SmartTagClean = false };
break1.Append(runProperties5);
A.Run run5 = new A.Run();
A.RunProperties runProperties6 = new A.RunProperties(){ Language = "en-US", Dirty = false, SpellingError = true, SmartTagClean = false };
A.Text text5 = new A.Text();
text5.Text = "ird";
run5.Append(runProperties6);
run5.Append(text5);
A.EndParagraphRunProperties endParagraphRunProperties1 = new A.EndParagraphRunProperties(){ Language = "en-US", Dirty = false, SmartTagClean = false };
paragraph3.Append(paragraphProperties3);
paragraph3.Append(run3);
paragraph3.Append(run4);
paragraph3.Append(break1);
paragraph3.Append(run5);
paragraph3.Append(endParagraphRunProperties1);
此代码是使用Open XML Productivity Tool生成的。我强烈建议您使用它对您在 Excel、Word 和 PowerPoint 中编写代码所需的内容进行逆向工程。
希望这可以帮助...