Word) (Application.SmartArtQuickStyles 屬性

會傳回 SmartArtQuickStyles 物件,代表目前已載入應用程式的 SmartArt 樣式集合。 唯讀。

語法

expressionSmartArtQuickStyles

表達 會傳回 'Application' 物件的運算式。

註解

SmartArtQuickStyles 屬性代表的樣式會對應至 [ 設計] 索引標籤上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.QuickStyle = Application.SmartArtQuickStyles.Item(6)

另請參閱

Application 物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應