MindFusion.Wpf Pack Programmer's Guide
DiagramLink Methods
 


 Public Methods

  Name Description

AddLabel

Overloaded. Adds a label to the link.

ClearStyleableProperties

Clears the local values of all styleable appearance properties. (Inherited from DiagramItem.)

Clone

Creates a copy of this link.

ContainsPoint

Overloaded.  

Dispose

Overloaded.   (Inherited from DiagramItem.)

Draw

Draws the link in the specified DrawingContext.

DrawArrowhead

Draws an arrowhead shape.

DrawHandles

DiagramItem.DrawHandles override.

GetBounds

Overloaded.  

GetLongestHSegment

Returns the index of the longest horizontal segment of this link.

GetRegion

Returns a Geometry object representing the shape of this item. (Inherited from DiagramItem.)

GetRepaintRect

DiagramItem.GetRepaintRect override.

GetRotatedBounds

DiagramItem.GetRotatedBounds override.

GetRotationAngle

Gets the item rotation angle. (Inherited from DiagramItem.)

GetToolTip

Gets the tooltip that should be displayed for this item at the specified point. (Inherited from DiagramItem.)

HitTest

Returns the diagram item that contains the specified point. (Inherited from DiagramItem.)

HitTestHandle

DiagramItem.HitTestHandle override.

HitTestManipulators

Triggers the manipulator located at the specified point. (Inherited from DiagramItem.)

Intersects

Overloaded.  

IsConnectedTo

Checks whether this link is connected to 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.)

NowModifying

Gets a flag indicating whether this object is being currently modified interactively by the user. (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.)

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.

Repaint

Overloaded.   (Inherited from DiagramItem.)

Route

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

TransformDiagramToItem

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

TransformItemToDiagram

Transforms point from item-relative coordinates to document coordinates. (Inherited from DiagramItem.)

UpdateAnimation

Invoked by running animations to update an item according to current animation progress.

UpdateFromPoints

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

AddToVisualContainer

Adds this item to specified container element. (Inherited from DiagramItem.)

AllowCreate

DiagramItem.AllowCreate override.

AllowModify

DiagramItem.AllowModify override.

CompleteCreate

DiagramItem.CompleteCreate override.

CompleteModify

Overloaded.  

CreateProperties

DiagramItem.CreateProperties override.

CreateRenderer

DiagramItem.CreateRenderer override.

CreateState

DiagramItem.CreateState override.

DrawManipulators

Draws the associated manipulators in the specified context. (Inherited from DiagramItem.)

EnumStyleableProperties

DiagramItem.EnumStyleableProperties override.

FreeResources

Called when the item is completely disassociated from a Diagram, that is, when it is no longer referenced from an item collection or the undo/redo history. (Inherited from DiagramItem.)

GetHeight

Gets the height of this item. (Inherited from DiagramItem.)

GetTextRect

Subtracts the TextPadding values from the specified rectangle. (Inherited from DiagramItem.)

GetWidth

Gets the width of this item. (Inherited from DiagramItem.)

GetX

Gets the x-coordinate of the current position of this item. (Inherited from DiagramItem.)

GetY

Gets the y-coordinate of the current position of this item. (Inherited from DiagramItem.)

LoadFromJson

Loads the link from a JSON object.

LoadFromXml

DiagramItem.LoadFromXml override.

MeasureOverride

FrameworkElement.MeasureOverride override.

OnAdd

DiagramItem.OnAdd override.

OnAppearanceChanged

DiagramItem.OnStrokeAttributeChanged override.

OnChildModified

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

OnChildModifying

Called when a child node is being modified. (Inherited from DiagramItem.)

OnLoad

DiagramItem.OnLoad override.

OnMeasureUnitChanged

Called when the diagram's MeasureUnit changes.

OnMouseDown

UIElement.OnMouseDown override. (Inherited from DiagramItem.)

OnMouseUp

UIElement.OnMouseUp override. (Inherited from DiagramItem.)

OnPositioningChanged

Called when the item's position changes. (Inherited from DiagramItem.)

OnPreviewMouseDown

UIElement.OnPreviewMouseWheel override. (Inherited from DiagramItem.)

OnPreviewMouseUp

UIElement.OnPreviewMouseUp override. (Inherited from DiagramItem.)

OnRemove

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

OnRender

UIElement.OnRender override. (Inherited from DiagramItem.)

OnSerializablePropertyChanged

Invoked when a FrameworkElement property serializable by DiagramItem changes. (Inherited from DiagramItem.)

OnSizeChanged

Called when the size of the item changes. (Inherited from DiagramItem.)

OnStrokeAttributeChanged

DiagramItem.OnStrokeAttributeChanged override.

OnTextAttributeChanged

DiagramItem.OnTextAttributeChanged override.

OnZoomChanged

Called when the ZoomFactor changes. (Inherited from DiagramItem.)

RestoreProperties

DiagramItem.RestoreProperties override.

RestoreState

DiagramItem.RestoreState override.

SaveProperties

DiagramItem.SaveProperties override.

SaveState

DiagramItem.SaveState override.

SaveToJson

Saves the link as a JSON object.

SaveToXml

DiagramItem.SaveToXml override.

SetDiagramDirty

Marks the diagram as changed. (Inherited from DiagramItem.)

SetExpanded

Sets whether the item is in expanded or collapsed state. (Inherited from DiagramItem.)

ShouldRender

Determines whether the item should be rendered in the current context. (Inherited from DiagramItem.)

StartCreate

DiagramItem.StartCreate override.

StartModify

DiagramItem.StartModify override.

UpdateCreate

DiagramItem.UpdateCreate override.

UpdateGroup

Called to update the positions of subordinate nodes attached to this item when the attachment style is set to ControlledByMaster. (Inherited from DiagramItem.)

UpdateModify

DiagramItem.UpdateModify override.

 See Also

DiagramLink Class
MindFusion.Diagramming.Wpf Namespace