接口 IConnectorFormat
public interface IConnectorFormat
Represents properties and methods that apply to connectors.
-
方法概要
修饰符和类型方法说明void
beginConnect
(IShape connectedShape, int connectionSite) Attaches the beginning of the specified connector to a specified shape.void
Detaches the beginning of the specified connector from the shape it’s attached to.void
endConnect
(IShape connectedShape, int connectionSite) Attaches the end of the specified connector to a specified shape.void
Detaches the end of the specified connector from the shape it’s attached to.boolean
Gets whether the connector is connected to a shape (True if the beginning of the specified connector is connected to a shape).Returns theIShape
object that represents the shape that thebeginning of the specified connector is attached to.int
Returns an integer that specifies the connection site that the end of a connector is connected to.boolean
Gets whether the end of the connector is connected to a shape (True if the end of the specified connector is connected to a shape).Returns theIShape
object that represents the shape that the end ofthe specified connector is attached to.int
Returns an integer that specifies the connection site that the end of a connector is connected to.getType()
Gets the connector format type.void
setType
(ConnectorType value) Sets the connector format type.
-
方法详细资料
-
getBeginConnected
boolean getBeginConnected()Gets whether the connector is connected to a shape (True if the beginning of the specified connector is connected to a shape). -
getBeginConnectedShape
IShape getBeginConnectedShape()Returns theIShape
object that represents the shape that thebeginning of the specified connector is attached to. -
getBeginConnectionSite
int getBeginConnectionSite()Returns an integer that specifies the connection site that the end of a connector is connected to. -
getEndConnected
boolean getEndConnected()Gets whether the end of the connector is connected to a shape (True if the end of the specified connector is connected to a shape). -
getEndConnectedShape
IShape getEndConnectedShape()Returns theIShape
object that represents the shape that the end ofthe specified connector is attached to. -
getEndConnectionSite
int getEndConnectionSite()Returns an integer that specifies the connection site that the end of a connector is connected to. -
getType
ConnectorType getType()Gets the connector format type. -
setType
Sets the connector format type. -
beginConnect
Attaches the beginning of the specified connector to a specified shape. -
beginDisconnect
void beginDisconnect()Detaches the beginning of the specified connector from the shape it’s attached to. -
endConnect
Attaches the end of the specified connector to a specified shape. -
endDisconnect
void endDisconnect()Detaches the end of the specified connector from the shape it’s attached to.
-