[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IChart.AddChart

AddChart Method

AddChart(ChartType, double, double, double, double)

在图表上指定位置创建图表。

Declaration
IShape AddChart(ChartType chartType, double left, double top, double width, double height)
Parameters
Type Name Description
ChartType chartType

图表类型

double left

图表左侧边缘到图表区域左侧边缘的距离,以点为单位。

double top

图表顶部边缘到图表区域顶部边缘的距离,以点为单位。

double width

图表的宽度,以点为单位。

double height

图表的高度,以点为单位。

Returns
Type Description
IShape

IShape 对象。