[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IShapes.AddChartInPixel

AddChartInPixel Method

AddChartInPixel(ChartType, double, double, double, double)

在活动工作表的指定位置创建图表。

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

图表类型。

double left

对象左侧到工作表列A左侧(在图表上则是图表区域左侧)的距离,以像素为单位。

double top

形状范围内最顶部形状的顶部边缘到工作表顶部边缘的距离,以像素为单位。

double width

对象的宽度,以像素为单位。

double height

对象的高度,以像素为单位。

Returns
Type Description
IShape

IShape 对象。

AddChartInPixel(string, ChartType, double, double, double, double)

在活动工作表的指定位置创建图表。

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

图表名称。

ChartType chartType

图表类型。

double left

对象左侧到工作表列A左侧(在图表上则是图表区域左侧)的距离,以像素为单位。

double top

形状范围内最顶部形状的顶部边缘到工作表顶部边缘的距离,以像素为单位。

double width

对象的宽度,以像素为单位。

double height

对象的高度,以像素为单位。

Returns
Type Description
IShape

IShape 对象。