共用方式為


Word) (Shape.HasSmartArt 屬性

如果沒有 SmartArt 圖表出現在圖形上會傳回 True 。 唯讀。

語法

expressionHasSmartArt

表達 代表 Shape 物件的變數。

範例

下列程式碼範例會顯示使用中文件的第一個圖形,是否包含 SmartArt。

Dim myShape As Shape 
 
Set myShape = ActiveDocument.Shapes(1) 
 
If myShape.HasSmartArt Then 
 MsgBox "The first shape contains SmartArt." 
Else 
 MsgBox "The first shape contains no SmartArt." 
End If

另請參閱

Shape 物件

支援和意見反應

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