DiagramLite Programmer's Guide
DiagramLink Methods
 


 Public Methods

  Name Description

AddLabel

Overloaded.  

ContainsPoint

Determines whether this link contains the specified point.

GetBounds

Gets the bounding rectangle of this link.

GetNearestSegment

Gets the index of the links segment closest to the specified point.

GetRotatedBounds

DiagramItem.GetRotatedBounds override.

HitTestHandle

DiagramItem.HitTestHandle override.

Intersects

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

LabelFromPoint

Returns the label whose layout rectangle contains the specified point.

ReassignAnchorPoints

Attaches the link end points to the anchor points defined for the link's 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.

UpdateFromPoints

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

 Protected Methods

  Name Description

AddHandlesToCanvas

Overloaded.  

AllowDrag

Invoked to validate the drag operation.

CreateState

DiagramItem.CreateState override.

EndDrag

DiagramItem.EndDrag override.

LoadFromXml

Loads the link content from an XML element.

OnLoad

DiagramItem.OnLoad override.

RestoreState

DiagramItem.RestoreState override.

SaveState

DiagramItem.SaveState override.

SaveToXml

Saves the link content into an XML element.

ScaleElements

Scales the link's elements by specified amount.

StartDrag

DiagramItem.StartDrag override.

UpdateDrag

DiagramItem.UpdateDrag override.

UpdateDynamicLink

Updates the control points of a dynamic link while one of the nodes it connects is being moved or resized.

UpdateTextLayout

Positions the TextBlock control displaying the link's text. Override to implement custom positioning if desired.

UpdateVisuals

DiagramItem.UpdateVisuals override.

 Inherited Public Methods

  Name Description

Clone

Creates a copy of this item. (Inherited from DiagramItem.)

ContainsPoint

Determines whether this item contains the specified point. (Inherited from DiagramItem.)

GetBounds

Gets the bounding rectangle of this item. (Inherited from DiagramItem.)

GetOutlinePoly

Gets a polygon approximating the outline of this object. (Inherited from DiagramItem.)

GetRepaintRect

Gets the repaint region for this item, taking into account factors such as pen, selection handles and shadow. (Inherited from DiagramItem.)

GetRotatedBounds

Gets the bounding rectangle of this item when it is rotated. (Inherited from DiagramItem.)

HitTestHandle

Determines whether a selection handle of this item is located at the specified point. (Inherited from DiagramItem.)

NotInteractive

Gets whether the user is prevented from manipulating this item. (Inherited from DiagramItem.)

OnApplyTemplate

Control.OnApplyTemplate override. (Inherited from DiagramItem.)

Query

Returns the items that can be reached from this item by following the path specified in the given query expression. (Inherited from DiagramItem.)

RestoreLocationState

Restores the state of this diagram item. (Inherited from DiagramItem.)

SaveLocationState

Saves the state of this diagram item. (Inherited from DiagramItem.)

TransformDiagramToItem

Transforms a point in diagram coordinates to item coordinates. (Inherited from DiagramItem.)

TransformItemToDiagram

Gets the diagram coordinates of a point specified in the local coordinate system of this item. (Inherited from DiagramItem.)

ZBottom

Moves the item to the bottom of the z-order. (Inherited from DiagramItem.)

ZLevelDown

Moves the item one level down in the z-order. (Inherited from DiagramItem.)

ZLevelUp

Moves the item one level up in the z-order. (Inherited from DiagramItem.)

ZTop

Moves the item to the top of the z-order. (Inherited from DiagramItem.)

 Inherited Protected Methods

  Name Description

AddHandlesToCanvas

Overloaded.   (Inherited from DiagramItem.)

AllowDrag

Invoked to validate the drag operation. (Inherited from DiagramItem.)

CancelDrag

Invoked when the interactive modification of this object has been canceled. (Inherited from DiagramItem.)

CreateState

Creates an item state corresponding to the type of this diagram item. (Inherited from DiagramItem.)

EndDrag

Invoked when the user stops dragging this item. (Inherited from DiagramItem.)

LoadFromXml

Loads the item content from an XML element. (Inherited from DiagramItem.)

OnAdd

Called when the item is added to a Diagram, either by the user, programmatically or via undo / redo. (Inherited from DiagramItem.)

OnChildModified

Called when a group child node has been modified. (Inherited from DiagramItem.)

OnLoad

Called after successful deserialization. (Inherited from DiagramItem.)

OnLostMouseCapture

Control.OnLostMouseCapture override. (Inherited from DiagramItem.)

OnMeasureUnitChanged

Called when the diagram's MeasureUnit changes. (Inherited from DiagramItem.)

OnMouseEnter

Control.OnMouseEnter override. (Inherited from DiagramItem.)

OnMouseLeave

Control.OnMouseLeave override. (Inherited from DiagramItem.)

OnMouseLeftButtonDown

Control.OnMouseLeftButtonDown override. (Inherited from DiagramItem.)

OnMouseLeftButtonUp

Control.OnMouseLeftButtonUp override. (Inherited from DiagramItem.)

OnRemove

Called when an item is removed from a Diagram, either by the user, programmatically or via undo / redo. (Inherited from DiagramItem.)

RemoveHandlesFromCanvas

Invoked when the item's selection handles should be removed. (Inherited from DiagramItem.)

RestoreState

Restores the state of this diagram item. (Inherited from DiagramItem.)

SaveState

Saves the state of this diagram item. (Inherited from DiagramItem.)

SaveToXml

Saves the item content into an XML element. (Inherited from DiagramItem.)

ScaleElements

Scales the item's elements by specified amount. (Inherited from DiagramItem.)

StartDrag

Invoked when the user starts dragging this item. (Inherited from DiagramItem.)

UpdateDrag

Invoked while the user drags this item. (Inherited from DiagramItem.)

UpdateHandleColors

Sets the handle colors according to the current selection state of the item and the enabled bits in the EnabledHandles property. (Inherited from DiagramItem.)

UpdateHandlePositions

Invoked when the item's selection handles should change their position. (Inherited from DiagramItem.)

UpdateStates

Sets the current VisualStates of this item. (Inherited from DiagramItem.)

UpdateVisuals

Invoked when an item should update its visual elements. (Inherited from DiagramItem.)

 See Also

DiagramLink Class
MindFusion.Diagramming Namespace