DiagramLite Programmer's Guide
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.

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.

HitTestHandle

DiagramItem.HitTestHandle override.

OnApplyTemplate

FrameworkElement.OnApplyTemplate override.

OnBoundsChanged

Called when the location and size of this node change.

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

SetBounds

Sets the location and size of this node.

 Protected Methods

  Name Description

AddAnchorPointVisuals

Adds the AnchorPatern points to the node's Adorner.

AddExpandButton

Adds the ExpandButton to the node's Adoner.

AddHandlesToCanvas

Overloaded.  

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.

GetRotatedBounds

Overloaded.  

LoadFromXml

DiagramItem.LoadFromXml override.

OnAdd

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

OnMeasureUnitChanged

Called when the diagram's MeasureUnit changes.

OnRemove

DiagramItem.OnRemove override.

RemoveAnchorPointVisuals

Removes the AnchorPatern 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.

UpdateVisuals

DiagramItem.UpdateVisuals override.

 Inherited Public Methods

  Name Description

Clone

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

ContainsPoint

Determines whether this item contains the specified point. (Inherited from DiagramItem.)

GetBounds

Gets the bounding rectangle of this item. (Inherited from DiagramItem.)

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

Gets the bounding rectangle of this item when it is rotated. (Inherited from DiagramItem.)

HitTestHandle

Determines whether a selection handle of this item is located at the specified point. (Inherited from DiagramItem.)

NotInteractive

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

OnApplyTemplate

Control.OnApplyTemplate override. (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.)

RestoreLocationState

Restores the state of this diagram item. (Inherited from DiagramItem.)

SaveLocationState

Saves the state of this diagram item. (Inherited from DiagramItem.)

TransformDiagramToItem

Transforms a point in diagram coordinates to item coordinates. (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.)

 Inherited Protected Methods

  Name Description

AddHandlesToCanvas

Overloaded.   (Inherited from DiagramItem.)

AllowDrag

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

CancelDrag

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

CreateState

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

EndDrag

Invoked when the user stops dragging this item. (Inherited from DiagramItem.)

LoadFromXml

Loads the item content from an XML element. (Inherited from DiagramItem.)

OnAdd

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

OnChildModified

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

OnLoad

Called after successful deserialization. (Inherited from DiagramItem.)

OnLostMouseCapture

Control.OnLostMouseCapture override. (Inherited from DiagramItem.)

OnMeasureUnitChanged

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

OnMouseEnter

Control.OnMouseEnter override. (Inherited from DiagramItem.)

OnMouseLeave

Control.OnMouseLeave override. (Inherited from DiagramItem.)

OnMouseLeftButtonDown

Control.OnMouseLeftButtonDown override. (Inherited from DiagramItem.)

OnMouseLeftButtonUp

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

Restores the state of this diagram item. (Inherited from DiagramItem.)

SaveState

Saves the state of this diagram item. (Inherited from DiagramItem.)

SaveToXml

Saves the item content into an XML element. (Inherited from DiagramItem.)

ScaleElements

Scales the item's elements by specified amount. (Inherited from DiagramItem.)

StartDrag

Invoked when the user starts dragging this item. (Inherited from DiagramItem.)

UpdateDrag

Invoked while the user drags this item. (Inherited from DiagramItem.)

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

UpdateVisuals

Invoked when an item should update its visual elements. (Inherited from DiagramItem.)

 See Also

DiagramNode Class
MindFusion.Diagramming Namespace