InlineShapes.AddSmartArt 方法 (Word)InlineShapes.AddSmartArt method (Word)

會將 SmartArt 圖形當做內嵌圖案插入使用中文件。Inserts a SmartArt graphic as an inline shape into the active document.


expressionexpression. AddSmartArt( _Layout_ , _Range_ )

_運算式_會傳回 'InlineShapes' 物件的運算式。expression An expression that returns a 'InlineShapes' object.


名稱Name 必要/選用Required/Optional 資料類型Data type 描述Description
LayoutLayout 必要Required [SMARTARTLAYOUT][SMARTARTLAYOUT] 一個 SmartArtLayout 物件,會指定 SmartArt 圖形的配置。A SmartArtLayoutobject that specifies the layout for the SmartArt graphic.
RangeRange 選用Optional VariantVariant 會指定 SmartArt 圖形所繫結的文字。Specifies the text to which the SmartArt graphic is bound. 如果指定了 Range,SmartArt 圖形會置於範圍中第一個段落的開頭。If Range is specified, the SmartArt graphic is positioned at the beginning of the first paragraph in the range. 如果省略此引數,則會自動選取範圍,並將 SmartArt 圖形置於頁面的上邊緣和左邊緣的相對位置。If this argument is omitted, the range is selected automatically, and the SmartArt graphic is positioned relative to the top and left edges of the page.

傳回值Return value


請參閱See also

InlineShapes 集合物件InlineShapes Collection Object

支援和意見反應Support and feedback

有關於 Office VBA 或這份文件的問題或意見反應嗎?Have questions or feedback about Office VBA or this documentation? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.