WPS 基础接口 > 文字 API 参考 > Application > 属性 > Application.SmartArtLayouts 属性
返回 SmartArtLayouts 对象,该对象代表应用程序中当前加载的 SmartArt 布局集。只读。

语法

表达式.SmartArtLayouts

表达式   一个返回 Application 对象的表达式。

说明

SmartArtLayouts 属性代表的布局集与“布局”组中的可用布局相对应,该组位于 WPS 2015 中“SmartArt 工具”上下文选项卡上的“设计”选项卡中。

示例

下面的代码示例向活动文档中添加 SmartArt 图形,然后将该 SmartArt 图形布局设置为“分组列表”。

示例代码
let myShape
let mySmartArt
myShape = ActiveDocument.Shapes.AddSmartArt(Application.SmartArtLayouts.Item(1), 50, 50, 200, 200,null)
mySmartArt = myShape.SmartArt
mySmartArt.Layout = Application.SmartArtLayouts.Item(15)


请参阅