Search
DiagramLink Methods
 


 Public Methods

  Name Description

AddLabel

Overloaded.  

Clone

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

ContainsPoint

DiagramItem.ContainsPoint override.

GetBounds

DiagramItem.GetBounds override.

GetNearestSegment

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

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

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.

NotInteractive

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

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.SaveState override.

TransformDiagramToItem

Transforms a point in diagram coordinates to item coordinates. This method should be used instead Visual.TransformToDescendant because it works correctly when the item is not yet Arrange()d. (Inherited from DiagramItem.)

TransformItemToDiagram

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

UpdateFromPoints

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

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.)

 Protected Methods

  Name Description

AddHandlesToCanvas

Overloaded.  

AllowDrag

Invoked to validate the drag operation.

CancelDrag

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

CreateState

DiagramItem.CreateState override.

EndDrag

DiagramItem.EndDrag override.

LoadFromXml

Loads the link content from an XML element.

OnAdd

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

OnApplyTemplate

FrameworkElement.OnApplyTemplate override. (Inherited from DiagramItem.)

OnChildModified

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

OnLoad

DiagramItem.OnLoad override.

OnMeasureUnitChanged

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

OnPointerCaptureLost

Control.OnPointerCaptureLost override. (Inherited from DiagramItem.)

OnPointerEntered

Control.OnPointerEntered override. (Inherited from DiagramItem.)

OnPointerExited

Control.OnPointerExited override. (Inherited from DiagramItem.)

OnPointerPressed

Control.OnPointerPressed override. (Inherited from DiagramItem.)

OnPointerReleased

Control.OnPointerReleased 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

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.

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.)

UpdateTextLayout

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

UpdateVisuals

DiagramItem.UpdateVisuals override.

 See Also