问题描述
我的要求是更改文档中所有dropcaps的font-family。
我能做到这一点的唯一方法是迭代通过所有段落逐一检查是否有一个dropcap并更新相同。
如果文件有很多段落,这需要很长时间。
有没有一种有效的方法呢?
谢谢,¥b $ b Nandu
Hi,
My requirement is to change the font-family of all the dropcaps in the document.
The only way I could do this is to iterate through all paragraphs one by one and check if this has a dropcap and update the same.
This takes a lot of time if the document has many paragraphs.
Is there an efficient way to do this?
Thanks,
Nandu
推荐答案
没有DropCaps集合;每个Paragraph对象只包含一个DropCap对象。 (请访问
)所以没有任何其他方式来获取DropCap对象。
There is no DropCaps collection; each Paragraph object contains only one DropCap object. (Please visitDropCap Object (Word) ) So there is no any other way to get the DropCap object.
问候,
Celeste
这篇关于更改Dropcap的字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!