Word) (Application.SmartArtLayouts 屬性

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

語法

expressionSmartArtLayouts

表達 會傳回 '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)

另請參閱

Application 物件

支援和意見反應

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