Search
DiagramLink Members
Constructors Fields Properties Methods
 


Represents a link between two diagram nodes.

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

 Public Constructors

  Name Description

DiagramLink

Overloaded. Initializes a new instance of the DiagramLink class.

 Public Fields

  Name Description

BaseBrushProperty

Identifies the BaseBrush dependency property.

BaseShapeProperty

Identifies the BaseShape dependency property.

BaseShapeSizeProperty

Identifies the BaseShapeSize dependency property.

BrushProperty

Idendifies the Brush dependency property. (Inherited from DiagramItem.)

FontFamilyProperty

Identifies the FontFamily dependency property. (Inherited from DiagramItem.)

FontSizeProperty

Identifies the FontSize dependency property. (Inherited from DiagramItem.)

FontStretchProperty

Identifies the FontStretch dependency property. (Inherited from DiagramItem.)

FontStyleProperty

Identifies the FontStyle dependency property. (Inherited from DiagramItem.)

FontWeightProperty

Identifies the FontWeight dependency property. (Inherited from DiagramItem.)

HeadBrushProperty

Identifies the HeadBrush dependency property.

HeadShapeProperty

Identifies the HeadShape dependency property.

HeadShapeSizeProperty

Identifies the HeadShapeSize dependency property.

HeadStrokeDashStyleProperty

Identifies the HeadStrokeDashStyle dependency property.

HeadStrokeProperty

Identifies the HeadStroke dependency property.

HeadStrokeThicknessProperty

Identifies the HeadStrokeThickness dependency property.

IdProperty

Identifies the Id dependency property. (Inherited from DiagramItem.)

IntermediateBrushProperty

Identifies the IntermediateBrush dependency property.

IntermediateShapeProperty

Identifies the IntermediateShape dependency property.

IntermediateShapeSizeProperty

Identifies the IntermediateShapeSize dependency property.

StrokeDashCapProperty

Identifies the StrokeDashCap dependency property. (Inherited from DiagramItem.)

StrokeDashStyleProperty

Identifies the StrokeDashStyle dependency property. (Inherited from DiagramItem.)

StrokeEndLineCapProperty

Identifies the StrokeEndLineCap dependency property. (Inherited from DiagramItem.)

StrokeLineJoinProperty

Identifies the StrokeLineJoin dependency property. (Inherited from DiagramItem.)

StrokeMiterLimitProperty

Identifies the StrokeMiterLimit dependency property. (Inherited from DiagramItem.)

StrokeProperty

Identifies the Stroke dependency property. (Inherited from DiagramItem.)

StrokeStartLineCapProperty

Identifies the StrokeStartLineCap dependency property. (Inherited from DiagramItem.)

StrokeThicknessProperty

Identifies the StrokeThickness dependency property. (Inherited from DiagramItem.)

TextAlignmentProperty

Identifies the TextAlignment dependency property. (Inherited from DiagramItem.)

TextBrushProperty

Identifies the TextBrush dependency property. (Inherited from DiagramItem.)

TextDecorationsProperty

Identifies the TextDecorations dependency property. (Inherited from DiagramItem.)

TextPaddingProperty

Identifies the TextPadding dependency property. (Inherited from DiagramItem.)

TextProperty

Identifies the Text dependency property. (Inherited from DiagramItem.)

TextTrimmingProperty

Identifies the TextTrimming dependency property. (Inherited from DiagramItem.)

TextVerticalAlignmentProperty

Identifies the TextVerticalAlignment dependency property. (Inherited from DiagramItem.)

TextWrappingProperty

Identifies the TextWrapping dependency property. (Inherited from DiagramItem.)

 Protected Fields

  Name Description

disposed

For internal use. (Inherited from DiagramItem.)

 Public Properties

  Name Description

Adorner

A Visual that contains the item's adjustment handles. (Inherited from DiagramItem.)

AllowMoveEnd

Gets or sets a value indicating whether the user is allowed to move the end point of a link.

AllowMoveStart

Gets or sets a value indicating whether the user is allowed to move the first control point of a link.

AutoRoute

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

AutoSnapToNode

Specifies whether a link end point should automatically snap to the nearest diagram node while the user moves the point's adjustment handle.

BaseBrush

Gets or sets the Brush used to fill BaseShape.

BaseShape

Gets or sets what shape to display at the beginning of a link.

BaseShapeSize

Gets or sets the size of the BaseShape shape.

Bounds

Gets the size of the rectangle that bounds this link.

Brush

Gets or sets the brush used to fill the interior of this item. (Inherited from DiagramItem.)

CascadeOrientation

Gets or sets the orientation of the first segment of a cascading link.

ConstrainedHeight

Gets whether text layout area has limited height.

ControlPoints

Gets a collection of the control points of this link.

CustomDraw

Gets or sets the type of custom drawing performed on this link.

Destination

Gets or sets the destination node of this link.

DestinationAnchor

Gets or sets the index of the destination anchor point within the AnchorPattern that contains it.

DestinationConnection

Gets or sets the ConnectionPoint object representing the link connection to its destination node. This allows connecting the link to a constituent part of a node, such as a TableNode row or a TreeViewItem.

DestinationIndex

Gets or sets the index of link's destination anchor point or table row.

DrawCrossings

Gets or sets a value indicating whether the points where this link crosses other links should be drawn as arcs or dashes.

Dynamic

Gets or 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.

EndPoint

Gets or sets the position of the last control point of this link.

FontFamily

Gets or sets the preferred font family for this DiagramItem. (Inherited from DiagramItem.)

FontSize

Gets or sets the font size for this DiagramItem. (Inherited from DiagramItem.)

FontStretch

Gets or sets the font-stretching characteristics for this DiagramItem. (Inherited from DiagramItem.)

FontStyle

Gets or sets the font style for this DiagramItem. (Inherited from DiagramItem.)

FontWeight

Gets or sets the font weight for this DiagramItem. (Inherited from DiagramItem.)

HandlesStyle

Gets or sets the appearance of the link's selection handles.

HeadBrush

Gets or sets the Brush used to fill HeadShape.

HeadPen

Gets or sets the pen to use when painting arrowheads lines.

HeadShape

Gets or sets the shape of this link's arrowhead.

HeadShapeSize

Gets or sets the size of the arrowhead shape.

HeadStroke

Gets or sets the Brush that specifies how the arrowhead stroke outline is painted.

HeadStrokeDashStyle

Gets or sets the pattern of dashes and gaps used to outline arrowhead shapes.

HeadStrokeThickness

Gets or sets the width of the arrowhead stroke outline.

HyperLink

Gets or sets the hyperlink associated with this diagram item. (Inherited from DiagramItem.)

Id

Gets or sets user-defined identifier associated with this item. (Inherited from DiagramItem.)

IgnoreLayout

Gets or sets a value indicating whether the position of this item should not be changed by automatic layout methods. (Inherited from DiagramItem.)

IntermediateBrush

Gets or sets the Brush used to fill IntermediateShape.

IntermediateShape

Gets or sets the shape displayed at the middle of each segment of the link.

IntermediateShapeSize

Gets or sets the size of the IntermediateShape shape.

IsConnected

Gets a value indicating whether the link is connected to nodes at both its ends.

Labels

Returns the list of all labels displayed by this link.

LayerIndex

Gets or sets the zero-based index of the layer this item is associated with, or -1, if the item is not associated with a layer. (Inherited from DiagramItem.)

LayoutTraits

Contains properties specific to each layout algorithm. (Inherited from DiagramItem.)

Length

Gets the length of the link.

Locked

Gets or sets a value indicating whether users are allowed to edit the diagram item. (Inherited from DiagramItem.)

Origin

Gets or sets the origin node of the link.

OriginAnchor

Gets or sets the index of the origin anchor point within the AnchorPattern that contains it.

OriginConnection

Gets or sets the ConnectionPoint object representing the link connection to its origin node. This allows connecting the link to a constituent part of a node, such as a TableNode row or a TreeViewItem.

OriginIndex

Gets or sets the index of link's origin anchor point or table row.

Parent

Gets the diagram that contains this item. (Inherited from DiagramItem.)

Printable

Gets or sets a value indicating whether to print the item. (Inherited from DiagramItem.)

RetainForm

Gets or sets a value indicating whether a link should maintain its form if the nodes connected with that link are moved around.

RuntimeIndex

For internal use. (Inherited from DiagramItem.)

SegmentCount

Gets or sets the number of segments of this link.

Selected

Gets or sets a value indicating whether a diagram item is selected. (Inherited from DiagramItem.)

Shape

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

StartPoint

Gets or sets the position of the first control point of this link.

Stroke

Gets or sets the Brush that specifies how the item outline is painted. (Inherited from DiagramItem.)

StrokeDashCap

Gets or sets a PenLineCap enumeration value that specifies how the ends of a dash are drawn. (Inherited from DiagramItem.)

StrokeDashStyle

Gets or sets the pattern of dashes and gaps used to outline items. (Inherited from DiagramItem.)

StrokeEndLineCap

Gets or sets a PenLineCap enumeration value that specifies what shape to draw at the end of a Stroke. (Inherited from DiagramItem.)

StrokeLineJoin

Gets or sets a PenLineJoin enumeration value that specifies the type of join that is used at the vertices of the item's outline. (Inherited from DiagramItem.)

StrokeMiterLimit

Gets or sets a limit on the ratio of the miter length to half the StrokeThickness of an item outline element. (Inherited from DiagramItem.)

StrokeStartLineCap

Gets or sets a PenLineCap enumeration value that specifies what shape to draw at the start of a Stroke. (Inherited from DiagramItem.)

StrokeThickness

Gets or sets the width of the DiagramItem stroke outline. (Inherited from DiagramItem.)

SubordinateGroup

Gets a reference to the group of items that are attached to this one. (Inherited from DiagramItem.)

Text

Gets or sets the text displayed inside this item. (Inherited from DiagramItem.)

TextAlignment

Gets or sets a value that indicates the horizontal alignment of text content. (Inherited from DiagramItem.)

TextBrush

Gets or sets the brush used to draw the item's text. (Inherited from DiagramItem.)

TextDecorations

Gets or sets the effects to apply to the text of this DiagramItem. (Inherited from DiagramItem.)

TextPadding

Gets or sets the thickness of padding space between the item boundaries and its text. (Inherited from DiagramItem.)

TextStyle

Gets or sets the link's text placement and orientation.

TextTrimming

Gets or sets the text trimming to employ when text overflows the item area. (Inherited from DiagramItem.)

TextVerticalAlignment

Gets or sets a value that indicates the vertical alignment of text content. (Inherited from DiagramItem.)

TextWrapping

Gets or sets how this DiagramItem should wrap text. (Inherited from DiagramItem.)

TopLevel

DiagramItem.TopLevel override.

UIElement

Gets the UIElement associated with this DiagramItem. (Inherited from DiagramItem.)

Visible

DiagramItem.Visible override.

Weight

Gets or sets a weight value used in layout and path-finding algorithms. (Inherited from DiagramItem.)

ZIndex

Gets or sets the z-order position of this item. (Inherited from DiagramItem.)

 Protected Properties

  Name Description

LogicalChildren

FrameworkElement.LogicalChildren override.

MeasureUnit

Returns the diagram measure unit. (Inherited from DiagramItem.)

Size

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

 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