PowerPoint 中的连接类型
VBA 或 VSTO 都可以 - OOXML 不行。需要使用OM。
我正在寻找一种使用 PowerPoint 对象模型以编程方式将给定自选图形的“连接类型”设置为圆形、斜角或斜角的方法。我在 OM 的任何地方都找不到这个,但我不知道它是否藏在我没有看到的地方。
(要在 PPT2007 中查看它,请选择“自选图形”并进入属性,然后选择“线条样式”,然后选择“连接类型”)。
有人知道这个虫子可能藏在哪里吗?
VBA or VSTO are okay - OOXML not. Need to use the OM.
I'm looking for a way with the PowerPoint object model to programmatically set the "Join Type" of a given AutoShape to Round, Bevel or Miter. I can't find this in the OM anywhere, but I don't know if it's tucked away somewhere where I'm not looking.
(To see it in PPT2007, choose an AutoShape and get to properties, then "Line Style", then "Join Type).
Anyone know where this bugger may be hidding?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来“Join Type”和“Cap Type”没有暴露给 Office 对象模型(这也包括 Excel) - 另一个确认:http://www.excelhero.com/blog/2010/05/interactive-advanced-excel-chart.html
但是,有一种方法围绕它可能是在 PowerPoint 文档中预定义一个形状,该形状设置了这些“连接类型”属性,然后将其用作模板,然后您可以将其用作源,将其格式粘贴到文档中的任何其他形状上(或者您创建的)。
Looks like "Join Type" and "Cap Type" are not exposed to the Office object model (this includes Excel as well) - another confirmation: http://www.excelhero.com/blog/2010/05/interactive-advanced-excel-chart.html
However, a way around it could be to predefine a shape in the PowerPoint document which has these "Join Type" properties set and then use this as a template that you could then use as a source to paste its format onto any other shapes that you have in your documents (or that you create).