Shapes.AddChart(XlChartType, Object, Object, Object, Object, Object) 方法

定义

此对象、成员或枚举已被弃用并且不适合在您的代码中使用。

public Microsoft.Office.Interop.Word.Shape AddChart (Microsoft.Office.Core.XlChartType Type = (Microsoft.Office.Core.XlChartType) -1, ref object Left, ref object Top, ref object Width, ref object Height, ref object Anchor);
abstract member AddChart : Microsoft.Office.Core.XlChartType * obj * obj * obj * obj * obj -> Microsoft.Office.Interop.Word.Shape
Public Function AddChart (Optional Type As XlChartType = (Microsoft.Office.Core.XlChartType) -1, Optional ByRef Left As Object, Optional ByRef Top As Object, Optional ByRef Width As Object, Optional ByRef Height As Object, Optional ByRef Anchor As Object) As Shape

参数

Left
Object
Top
Object
Width
Object
Height
Object
Anchor
Object

返回

Shape

示例

创建一个新的三维柱形图,然后将其添加到活动文档中。

适用于