ASP.NET Pack Programmer's Guide
DiagramLink Members
Constructors Methods
 


Represents a link between two diagram nodes.

The following tables list the members exposed by the DiagramLink type.

 Public Constructors

  Name Description

DiagramLink

Initializes a new instance of the DiagramLink class between the specified nodes using the specified diagram link as a prototype.

 Public Methods

  Name Description

addLabel

Adds a new label to this link.

allowDrag

DiagramItem.allowDrag override.

containsPoint

DiagramItem.containsPoint override.

endDrag

DiagramItem.endDrag override.

getAutoRoute

Gets a value indicating whether a link should avoid nodes by going the shortest path from its origin to its destination without crossing any other nodes.

getBaseBrush

Gets an object that specifies how to paint the interior of the link's base shape.

getBaseShape

Gets the shape displayed at the beginning of this link.

getBaseShapeSize

Gets the size of the shape displayed at the beginning of this link.

getControlPoints

Gets a collection of the control points of this link.

getDestination

Gets the destination node of this link.

getDestinationAnchor

Gets the anchor point to which a link is connected at its destination.

getDynamic

Gets a value indicating whether a link automatically adjusts its end points' positions in order to keep pointing to the centers of nodes that it connects.

getEndPoint

Gets the last control point of this link.

getHeadBrush

Gets a Brush that specifies how to paint the interior of the link's arrowhead shape.

getHeadShape

Gets the shape displayed at the end of this link.

getHeadShapeSize

Gets the size of the shape displayed at the end of this link.

getHeadStroke

Gets an object that specifies how to paint the outline of the link's arrowhead shape.

getHeadStrokeDashStyle

Gets an object that specifies the effective line dash pattern of the outline of the link's arrowhead shape.

getHeadStrokeThickness

Gets an object that specifies the line thickness of the outline of the link's arrowhead shape.

getOrigin

Gets the origin node of this link.

getOriginAnchor

Gets the anchor point to which a link is connected at its origin.

getSegmentCount

Gets the number of segments that form the link's geometry.

getShape

Gets the type of link segments and how they are positioned relatively to each other.

getStartPoint

Gets the first control point of this link.

getText

Gets the text displayed over this link.

getTextAlignment

Gets the link's text alignment.

getTextStyle

Gets the link's text placement and orientation.

getTopLevel

DiagramItem.getTopLevel override.

init

Returns a Builder object used to configure this DiagramLink instance.

intersects

Checks whether the link contour intersects with the outline of the specified node.

loadFromXml

DiagramItem.LoadFromXml override. Loads the link's content from an XML element.

putEndPointsAtNodeBorders

Places the link's end points on the outline of its origin and destination nodes.

removeLabel

Removes the specified label from this link.

restoreLocationState

DiagramItem.restoreLocationState override.

route

Routes this link, regardless of whether the link's AutoRoute flag is enabled.

saveLocationState

DiagramItem.saveLocationState override.

saveToXml

Saves the item's content into an XML element.

setAutoRoute

Sets a value indicating whether a link should avoid nodes by going the shortest path from its origin to its destination without crossing any other nodes.

setBaseBrush

Sets an object that specifies how to paint the interior of the link's base shape.

setBaseShape

Sets the shape to display at the beginning of this link.

setBaseShapeSize

Gets the size of the BaseShape shape.

setControlPoints

Sets a collection of the control points of this link.

setDestination

Sets the destination node of this link.

setDestinationAnchor

Sets the anchor point to which a link is connected at its destination.

setDynamic

Sets a value indicating whether a link automatically adjusts its end points' positions in order to keep pointing to the centers of nodes that it connects.

setEndPoint

Sets the last control point of this link.

setHeadBrush

Sets a Brush that specifies how to paint the interior of the link's arrowhead ShapeNode.

setHeadShape

Sets the shape to display at the end of this link.

setHeadShapeSize

Gets the size of the arrowhead shape.

setHeadStroke

Sets an object that specifies how to paint the outline of the link's arrowhead shape.

setHeadStrokeDashStyle

Sets an object that specifies the effective line dash pattern of the outline of the link's arrowhead shape.

setHeadStrokeThickness

Sets a number that specifies the line thickness of the outline of the link's arrowhead shape.

setOrigin

Sets the origin node of this link.

setOriginAnchor

Sets the anchor point to which a link is connected at its origin.

setSegmentCount

Sets the number of segments that form the link's geometry.

setShape

Sets the type of link segments and how they are positioned relatively to each other.

setStartPoint

Sets the first control point of this link.

setText

Sets the text displayed over a link.

setTextAlignment

Sets the link's text alignment.

setTextStyle

Sets the link's text placement and orientation.

startDrag

DiagramItem.startDrag override.

updateCanvasElements

Updates the elements on the HTML Canvas.

updateDrag

DiagramItem.updateDrag override.

updateFromPoints

Updates the link's internal state after the link's control points have been changed.

With

Returns a Builder object used to configure and create new DiagramLink instances.

 See Also

DiagramLink Class
MindFusion.Diagramming Namespace