Search
DiagramNode Methods
 


 Public Methods

  Name Description

AcceptLinks

Determines whether the node can be connected with links of the specified type.

Attach

Attaches the specified subordinate node to this node, so that when this node is moved, the subordinate follows it.

AttachTo

Attaches this node to the specified master node so that when the master is moved, the attached node follows it.

Clone

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

ContainsPoint

DiagramItem.ContainsPoint override.

Detach

Overloaded.  

GetAllIncomingLinks

Gets a collection of all links entering this node.

GetAllLinks

Gets all links connected to this node.

GetAllOutgoingLinks

Get a collection of all links going out of this node.

GetBounds

Gets the bounding rectangle of this item.

GetCenter

Gets the center of this node's bounding rectangle.

GetIntersection

Calculates the intersecion point between the segment defined by the specified point pair and the node's outline.

GetNearestBorderPoint

Returns a point that lies on the outline of this node, at the shortest distance from the specified point.

GetOutlinePoly

DiagramItem.GetOutlinePoly override.

GetRepaintRect

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

GetRotatedBounds

Overloaded.  

HitTestHandle

DiagramItem.HitTestHandle override.

NotInteractive

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

OnBoundsChanged

Sets the location and size of this node.

OnDragOut

Invoked when a diagram item is being dragged out of this node.

OnDragOver

Invoked when a diagram item is being dragged over this node.

OnDropOver

Invoked when a diagram item is dropped over this node.

ReassignAnchorPoints

Reassigns links to anchor points so that they are evenly disctributed.

ReassignUnanchoredLinks

Reassigns unanchored links

RestoreLocationState

DiagramItem.RestoreLocationState override.

SaveLocationState

DiagramItem.SaveState override.

SetBounds

Sets the location and size of this node.

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

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

AddAnchorPointVisuals

Adds the AnchorPattern points to the node's Adorner.

AddExpandButton

Adds the ExpandButton to the node's Adorner.

AddHandlesToCanvas

Overloaded.  

AllowDrag

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

CancelDrag

DiagramItem.CancelDrag override.

CreateAnchorPointVisual

Creates a Path that represents the specified AnchorPoint.

CreateConnectionPoint

Creates a connection point between this node and the specified link at the specified point.

CreateState

DiagramItem.CreateState override.

EndDrag

DiagramItem.EndDrag override.

GetOutline

Creates a Geometry object that describes the outline of the node.

LoadFromXml

DiagramItem.LoadFromXml override.

OnAdd

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

OnApplyTemplate

FrameworkElement.OnApplyTemplate override.

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.

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

DiagramItem.OnRemove override.

RemoveAnchorPointVisuals

Removes the AnchorPattern points from the node's Adorner.

RemoveHandlesFromCanvas

DiagramItem.RemoveHandlesFromCanvas override.

RestoreState

DiagramItem.RestoreState override.

SaveState

DiagramItem.SaveState override.

SaveToXml

Saves the item content into an XML element.

ScaleElements

Scales the node's elements by specified amount.

SetIncomingLinks

Sets the incoming links collection of this node.

SetOutgoingLinks

Sets the outgoing links collection of this node.

SetReflexive

Invoked to let a node set the shape of a reflexive link connected to it.

StartDrag

DiagramItem.StartDrag override.

UpdateDrag

DiagramItem.UpdateDrag override.

UpdateHandleColors

DiagramItem.UpdateHandleColors override.

UpdateHandlePositions

DiagramItem.UpdateHandlePositions override.

UpdateStates

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

UpdateVisuals

DiagramItem.UpdateVisuals override.

 See Also