接口 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 the IShape 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 the IShape 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.
    Gets the connector format type.
    void
    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 the IShape 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 the IShape 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

      void setType(ConnectorType value)
      Sets the connector format type.
    • beginConnect

      void beginConnect(IShape connectedShape, int connectionSite)
      Attaches the beginning of the specified connector to a specified shape.
      参数:
      connectedShape - Required IShape object. The shape to attach the beginningof the connector to. The specified Shape object must be in the same IShapes collection as the connector.
      connectionSite - Required Integer. A connection site on the shape specified byConnectedShape.
    • beginDisconnect

      void beginDisconnect()
      Detaches the beginning of the specified connector from the shape it’s attached to.
    • endConnect

      void endConnect(IShape connectedShape, int connectionSite)
      Attaches the end of the specified connector to a specified shape.
      参数:
      connectedShape - Required IShape object. The shape to attach the end of theconnector to. The specified Shape object must be in the same IShapes collection as the connector.
      connectionSite - Required Integer. A connection site on the shape specified byConnectedShape.
    • endDisconnect

      void endDisconnect()
      Detaches the end of the specified connector from the shape it’s attached to.