[英]PPTX OpenXML - Which is the newline indicator in bulleted text?
Can you please help me identify which is the newline indicator in bulleted text in PPTX OpenXML ? 您能否帮助我确定PPTX OpenXML中项目符号文本中的换行指示符是什么? based on this I want add newline character in my program 基于此,我想在程序中添加换行符
-Thank you -谢谢
Use the Break Class 使用休息班
So for the following slide with bulleted list with a newline indicator: 因此,对于以下带有项目符号列表和换行符的幻灯片:
Refer to the follwing code snipping showing from third bullet to fourth: 请参阅从第三个项目符号到第四个项目显示的以下代码片段:
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);
This code was generated with the Open XML Productivity Tool . 这段代码是使用Open XML Productivity Tool生成的。 I highly recommend you use it to reverse engineer the things you need to write code for in Excel, Word and PowerPoint. 我强烈建议您使用它对在Excel,Word和PowerPoint中编写代码所需的事情进行反向工程。
Hope this helps... 希望这可以帮助...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.