Connection Class
Represents the connection that should be made by the corresponding connector shape. This connects the head or the tail of the connector to some other drawing.
- Inheritance:
- System.ObjectConnection
Properties
Drawing
Gets the drawing to make the final connection to.
Property Value
The drawing to make the final connection to.
SiteIndex
Gets the index into the connection site table of the Drawing associated with this connection. There are many connection sites on a shape and this property specifies which connection site will be used for this connection.
Property Value
- System.Int32
The index into the connection site table of the Drawing associated with this connection.
Methods
Set(VisualDrawing, Int32)
Sets the connection to the specified drawing and specified connection site on it.
public void Set(VisualDrawing drawing, int siteIndex)
Public Sub Set(drawing As VisualDrawing, siteIndex As Integer)
Parameters
drawing
- VisualDrawing
The drawing to make the final connection to.
siteIndex
- System.Int32
The index into the connection site table of the drawing
.
Exceptions
- System.ArgumentException
Specified drawing
is not on the same slide as the connector that should connect it.
- System.ArgumentOutOfRangeException
Parameter siteIndex
is less than 0.