本文介绍了CTP和PPR是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始在 apache.poi 中弄清楚,但我无法理解 XWPFParagraph 中的 CTP 和 PPr 是什么意思.我有以下代码:

I starting figure out in apache.poi and I couldn't understand what does it mean CTP and PPr in XWPFParagraph. I have following code:

targetParagraph.getCTP()
               .setPPr(index.getParagraph().getCTP().getPPr());

我在官方文档中没有找到对这种方法的描述 apache.poi你能向我解释一下它是什么或者给我一些我可以阅读的链接吗?

I not found describing of this methods in official documentation apache.poiCan you explain to me what is it or get me some link where I can read about it?

感谢您的帮助!

推荐答案

getCTP() 返回 org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP 根据我的理解,它代表了一个段落较低级别,与 xml 严格相关.它被注释为 @Internal - 它可以在没有太多通知的情况下进行更改.

getCTP() returns org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP which from my understanding represends a paragraph on a lower level, strictly related to the xml. It is annotated as @Internal - it can be changed without much notice.

更多猜测,但我想说 getPPr() 返回一个表示段落属性的对象.

More of a guess but I'd say that getPPr() returns an object that represents a paragraph properties.

这篇关于CTP和PPR是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 23:17