[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IShapes.AddConnectorInPixel

AddConnectorInPixel Method

AddConnectorInPixel(ConnectorType, double, double, double, double)

创建一个连接器。返回表示新连接器的IShape 对象。

Declaration
IShape AddConnectorInPixel(ConnectorType type, double beginX, double beginY, double endX, double endY)
Parameters
Type Name Description
ConnectorType type

要添加的连接器类型。

double beginX

连接器起点的水平位置(以像素为单位),相对于文档左上角。

double beginY

连接器起点的垂直位置(以像素为单位),相对于文档左上角。

double endX

连接器终点的水平位置(以像素为单位),相对于文档左上角。

double endY

连接器终点的垂直位置(以像素为单位),相对于文档左上角。

Returns
Type Description
IShape

IShape 对象。

AddConnectorInPixel(string, ConnectorType, double, double, double, double)

创建一个连接器。返回表示新连接器的IShape 对象。

Declaration
IShape AddConnectorInPixel(string name, ConnectorType type, double beginX, double beginY, double endX, double endY)
Parameters
Type Name Description
string name

连接器的名称。

ConnectorType type

要添加的连接器类型。

double beginX

连接器起点的水平位置(以像素为单位),相对于文档左上角。

double beginY

连接器起点的垂直位置(以像素为单位),相对于文档左上角。

double endX

连接器终点的水平位置(以像素为单位),相对于文档左上角。

double endY

连接器终点的垂直位置(以像素为单位),相对于文档左上角。

Returns
Type Description
IShape

IShape 对象。