Search
DiagramNode Methods
 


 Public Methods

  Name Description

AcceptLinks

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

AddLabel

Overloaded.  

AttachTo

Overloaded. Attaches this node to another diagram item.

ClearStyleableProperties

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

Clone

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

Collapse

Hides all nodes and links in the subtree starting from this node.

ContainsPoint

Overloaded.  

Detach

Detaches this node from its master item.

Dispose

Overloaded.   (Inherited from DiagramItem.)

Draw

DiagramItem.Draw override.

DrawAnchorPoints

Draws the anchor points of this node.

DrawHandles

DiagramItem.DrawHandles override.

DrawLocal

Draws this node on the specified DrawingContext graphics surface.

Expand

Shows all nodes and links in the subtree starting from this node.

GetAllIncomingLinks

Overloaded.  

GetAllLinks

Gets all links connected to this node.

GetAllOutgoingLinks

Overloaded.  

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.

GetRegion

DiagramItem.GetRegion override.

GetRepaintRect

DiagramItem.GetRepaintRect override.

GetRotatedBounds

Overloaded.  

GetRotationAngle

Gets the rotation angle of this node.

GetToolTip

DiagramItem.GetToolTip override.

HitTest

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

HitTestHandle

DiagramItem.HitTestHandle override.

HitTestManipulators

DiagramItem.HitTestManipulators override.

Intersects

DiagramItem.Intersects override. Checks whether the specified rectangle intersects with this node.

LabelFromPoint

Returns the label whose layout rectangle contains the specified point.

Move

Moves the node to the specified location.

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

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.

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

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

ReassignUnanchoredLinks

Reassigns unanchored links

RemoveLabel

Removes the specified label from this node.

Repaint

DiagramItem.Repaint override.

Resize

Resizes the node.

SetBounds

Sets the location and size of this node.

SetExpandedFlag

Sets the 'expanded' flag, repainting the node.

SetRect

This method is used internally by the Ruler control to align nodes.

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.

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.

ArrangeOverride

FrameworkElement.ArrangeOverride override.

CompleteCreate

DiagramItem.CompleteCreate override.

CompleteModify

Overloaded.  

ConstraintsInfringed

Check whether the KeepInsideParent constrained is being violated.

CreateConnectionPoint

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

CreateProperties

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

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

GetDefaultTemplate

Returns a DataTemplate that should be used to render the node if its own Template property is not set.

GetHeight

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

GetLocalBounds

Gets this node's bounding rectangle in local coordinates.

GetTextRect

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

GetVisualChild

FrameworkElement.GetVisualChild override.

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

GroupContains

Determines whether this node is a predecessor of the specified node in the group hierarchy.

LoadFromJson

Loads the node from a JSON object.

LoadFromXml

DiagramItem.LoadFromXml override.

MeasureOverride

FrameworkElement.MeasureOverride override.

OnAdd

Called when this node is added to the Diagram.

OnAppearanceChanged

Invoked when any of the item's appearance properties changes. (Inherited from DiagramItem.)

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

Called after the item is deserialized.

OnMeasureUnitChanged

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

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

DiagramItem.OnRemove override.

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 node changes.

OnStrokeAttributeChanged

Invoked when any of the item's stroke attributes changes. (Inherited from DiagramItem.)

OnTextAttributeChanged

Invoked when any of the attributes defined in ITextAttributes changes. (Inherited from DiagramItem.)

OnUpdateBounds

Invoked when the bounding rectangle of the node has changed.

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 node as a JSON object.

SaveToXml

DiagramItem.SaveToXml override.

ScaleElements

Scales the node's elements by specified amount.

SetDiagramDirty

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

SetExpandable

Internally sets the expandable state of this object to the specified value, adding or removing an Expander manipulator object if necessary.

SetExpanded

DiagramItem.SetExpanded override.

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.

ShouldRender

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

ShouldRenderAnchorPoints

Determines whether the node should render its anchor points.

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

UpdateLinkIntersections

Updates the intersection points of links, conntected to this node and its outline, usually in response to change in the node's shape.

UpdateLinkPositions

Updates the end points of the links, connected to this node, usually in response to change in the node's size or shape.

UpdateModify

DiagramItem.UpdateModify override.

 See Also