Search
DiagramNode Methods
 


 Public Methods

  Name Description

AcceptLinks

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

AddLabel

Overloaded. Adds a new label to this node.

Animate

Animates the item. (Inherited from DiagramItem.)

AttachManipulator

Adds the specified manipulator to this node.

AttachTo

Overloaded. Attaches this node to another diagram item.

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.  

CreateConnectionPoint

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

Detach

Detaches this node from its master item.

DetachManipulator

Removes the specified manipulator from this node.

Dispose

Overloaded.   (Inherited from DiagramItem.)

DoModify

For internal use. (Inherited from DiagramItem.)

Draw

DiagramItem.Draw override. Draws the item on the specified IGraphics surface.

DrawAnchors

Draws the anchor points of this node.

DrawHandles

DiagramItem.DrawHandles override. Renders the adjustment handles of this item.

DrawInRect

 

DrawLocal

Override in a derived class to provide implementation specific drawing for the node.

DrawShadow

DiagramItem.DrawShadow override. Draws the shadow of this item on the specified IGraphics surface.

DrawShadowLocal

Override in a derived class to provide implementation specific drawing for the shadow of the node.

Expand

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

GetAllIncomingLinks

Overloaded.  

GetAllLinks

Gets all links connected to this node.

GetBounds

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

GetCenter

Gets the center of this node's bounding rectangle.

GetClosestAnchorPoint

Returns the index of the anchor point that lies at the shortest distance from the specified point.

GetEffectiveBrush

Creates a Brush object representing the currently effective brush of the item. (Inherited from DiagramItem.)

GetEffectivePen

Returns a Pen object representing the currently effective pen of the item. (Inherited from DiagramItem.)

GetEffectiveShadowBrush

Returns a Brush object representing the currently effective shadow brush of the item. (Inherited from DiagramItem.)

GetEffectiveTextBrush

Returns a Brush object representing the currently effective text brush of the item. (Inherited from DiagramItem.)

GetIntersection

Calculates the intersection 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

DiagramItem.GetRepaintRect override.

GetRotatedBounds

Overloaded. Gets the bounding rectangle of this node or the bounding rectangle of another rectangle rotated at a specified angle around a specified point.

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. Determines whether a selection handle of this item is located at the specified point.

HitTestManipulators

DiagramItem.HitTestManipulators override.

Intersects

Determines whether the node intersects another one, taking into account the outlines of node shapes.

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.

OnLoad

Called after successful deserialization. (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

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

ReassignUnanchoredLinks

Reassigns unanchored links

RemoveLabel

Removes the specified label from this node.

Resize

Resizes the node.

RestoreItemProperties

For internal use. (Inherited from DiagramItem.)

SaveItemProperties

For internal use. (Inherited from DiagramItem.)

SetBounds

Sets the location and size of this node.

SetExpandedFlag

Sets the 'expanded' flag, repainting the node.

SetPos

Sets the bounding rectangle of this node without updating connected arrows.

SetRect

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

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

AddManipulator

Adds the specified manipulator to this object. (Inherited from DiagramItem.)

AllowCreate

DiagramItem.AllowCreate override.

AllowModify

DiagramItem.AllowModify override.

CancelModify

DiagramItem.CancelModify override. Invoked when the interactive modification of this object has been canceled.

CompleteCreate

DiagramItem.CompleteCreate override.

CompleteModify

DiagramItem.CompleteModify override.

ConstraintsInfringed

Checks whether the KeepInsideParent constrained is being violated.

CreateProperties

DiagramItem.CreateProperties override.

CreateState

DiagramItem.CreateState override.

DrawManipulators

Overloaded. Draws the associated manipulators on a specified graphics. (Inherited from DiagramItem.)

Finalize

DiagramItem finalizer. (Inherited from DiagramItem.)

FreeResources

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

GetAllOutgoingLinks

Overloaded.  

GetLocalBounds

Gets this node's bounding rectangle in local coordinates.

GetRgnInRect

Creates and returns a Region object for this node as though it is contained in the specified rectangle.

GetValue

Gets the effective value of the style property with the specified name. (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.

LoadObsolete

For internal use. (Inherited from DiagramItem.)

OnAdd

DiagramItem.OnAdd override.

OnChildModified

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

OnClick

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

OnDoubleClick

Invoked when the user double-clicks this item. (Inherited from DiagramItem.)

OnMeasureUnitChanged

DiagramItem.OnMeasureUnitChanged override.

OnModify

Invoked when the user moves or resizes this node.

OnRemove

DiagramItem.OnRemove override.

OnRotationAngleChanged

Invoked when the rotation angle of this node has been changed, either programmatically or interactively.

OnStyleChanged

Invoked when the associated style or theme have changed. (Inherited from DiagramItem.)

OnTextChanged

Called when the value of the Text property changes. (Inherited from DiagramItem.)

OnTextFormatChanged

Called when the value of the TextFormat property changes. (Inherited from DiagramItem.)

OnUpdateBounds

Overloaded.  

OnZoomChanged

DiagramItem.OnZoomChanged override.

RemoveManipulator

Removes the specified manipulator from the object. (Inherited from DiagramItem.)

Repaint

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

Saves the item content into an XML element.

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

ShouldRenderAnchors

Determines whether the node should render its anchor points.

StartCreate

DiagramItem.StartCreate override.

StartModify

DiagramItem.StartModify override. Invoked when the user starts modifying this item interactively.

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, connected 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. Invoked during interactive modification of this item.

 See Also