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

语法

表达式.SmartArtQuickStyles

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

说明

SmartArtQuickStyles 属性代表的样式集与“样式”组中的可用样式相对应,该组位于 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.QuickStyle = Application.SmartArtQuickStyles.Item(6)


请参阅