Application.SmartArtLayouts 属性 (Word)
返回一个 SmartArtLayouts 对象,该对象代表当前在应用程序中加载的 SmartArt 布局集。 此为只读属性。
语法
expression。 SmartArtLayouts
表达 返回“Application”对象的表达式。
备注
SmartArtLayouts 属性表示的布局集对应于 Word 中 SmartArt 工具上下文选项卡上“设计”选项卡上的“布局”组中的可用布局。
示例
下面的代码示例向活动文档中添加 SmartArt 图形,然后将该 SmartArt 图形布局设置为“分组列表”。
Dim myShape As Shape
Dim mySmartArt As SmartArt
Set myShape = ActiveDocument.Shapes.AddSmartArt(Application.SmartArtLayouts(1), 50, 50, 200, 200)
Set mySmartArt = myShape.SmartArt
mySmartArt.Layout = Application.SmartArtLayouts(15)
另请参阅
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。