Shapes.AddSmartArt(SmartArtLayout, Object, Object, Object, Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建有指定布局的新 SmartArt 图形。
public Microsoft.Office.Interop.Excel.Shape AddSmartArt (Microsoft.Office.Core.SmartArtLayout Layout, object Left, object Top, object Width, object Height);
Public Function AddSmartArt (Layout As SmartArtLayout, Optional Left As Object, Optional Top As Object, Optional Width As Object, Optional Height As Object) As Shape
参数
- Layout
- SmartArtLayout
代表要使用的布局的对象。
- Left
- Object
从对象左边界至 A 列左边界(在工作表上)或图表区左边界(在图表上)的距离,以磅为单位。
- Top
- Object
从对象上边缘到工作表上边缘之间的距离(以磅为单位)。
- Width
- Object
对象的宽度,以磅为单位。
- Height
- Object
对象的宽度,以磅为单位。
返回
Shape 对象。