[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IShapes.AddConnector

AddConnector Method

AddConnector(ConnectorType, double, double, double, double)

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

Declaration
IShape AddConnector(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 对象。

AddConnector(ConnectorType, IRange)

在当前工作表的指定范围内创建连接器。
目标范围的工作表和被添加的形状的工作表必须是同一工作表。
返回表示新连接器的IShape 对象。

Declaration
IShape AddConnector(ConnectorType type, IRange targetRange)
Parameters
Type Name Description
ConnectorType type

要添加的连接器类型。

IRange targetRange

当前工作表的目标范围。

Returns
Type Description
IShape

IShape 对象。

AddConnector(string, ConnectorType, double, double, double, double)

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

Declaration
IShape AddConnector(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 对象。

AddConnector(string, ConnectorType, IRange)

在当前工作表的指定范围内创建连接器。
目标范围的工作表和被添加的形状的工作表必须是同一工作表。
返回表示新连接器的IShape 对象。

Declaration
IShape AddConnector(string name, ConnectorType type, IRange targetRange)
Parameters
Type Name Description
string name

连接器的名称。

ConnectorType type

要添加的连接器类型。

IRange targetRange

当前工作表的目标范围。

Returns
Type Description
IShape

IShape 对象。