默认表和在 Powerpoint 文本框中定义不同级别
我还有一些关于 powerpoint master 的问题,最好我想用 VBA 解决它们,但如果您有一个“点击解决方案”,我也会非常感激。
1) 如何定义自定义默认表,并且我不喜欢任何 Powerpoint 2010 建议,我想定义自己的默认表。我知道使用给定的样式之一作为默认样式很容易,但我不知道如何将我的布局放入可选择的样式中。
2)如何在文本框中设置不同级别的缩进和项目符号?我知道如何为整个占位符设置它们,但不知道如何访问 2 级以上......
非常感谢 seba
编辑:在 2)上我发现了如何通过 Levels() 设置缩进,但项目符号似乎通过 Paragraphs() 工作,这在创建母版时没有帮助
I have some more questions regarding powerpoint masters, preferably I would like to solve them in VBA, but if you have a "click solution" that would be highly appreciated, too.
1) How can I define custom default tables, and I do not like any of the Powerpoint 2010 suggestions, I would like to define my own default table. I know it is easy to use one of the given ones as default style, but I don't know how to get my layout into the choosable ones.
2) How can I set the indents and the bullets for the different levels in a textframe? I know how to set them for the whole placeholder, but not how to access level 2 onwards...
Thanks a lot
seba
Edit: on 2) I found out how to set the indents via Levels(), but the bullets seem to work via Paragraphs() which doesn't help when creating a master
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
1) 您无法定义自定义表,或者至少没有它的 UI 或对象模型。您可以从演示文稿或模板中的另一张幻灯片复制预制表格,然后根据需要将其粘贴到现有幻灯片上,或者首先添加最接近的可用预制表格,然后您的代码可以对其进行修改以适应需要。
2) 使用形状的 .TextFrame.Ruler 对象来修改 .TabStops 和 .Levels 集合。 .Levels(x).FirstMargin 和 .Levels(x).LeftMargin 可让您获取/设置项目符号缩进。
在 PPT 2007 及更高版本中,X 可以采用 1 到 9 的值,在早期版本中可以采用 1 到 5 的值。
1) You can't define custom tables, or at least there's no UI or object model for it. You could copy a pre-made table in from another slide in a presentation or template and paste it onto an existing slide as needed or start by adding the closest available pre-made table then your code could modify it to suit.
2) Work with the shape's .TextFrame.Ruler object to modify the .TabStops and .Levels collections. .Levels(x).FirstMargin and .Levels(x).LeftMargin let you get/set the bullet indents.
X can take on values of 1 to 9 in PPT 2007 and up, 1 to 5 in earlier versions.