Search
Diagram Methods
 


 Public Methods

  Name Description

AlignPointToGrid

Returns a point of the alignment grid nearest to the one passed as an argument.

ArrangeLinkLabels

Rearranges link labels whose AutoArrange property is enabled.

BeginEdit

Overloaded.  

CancelCompositeOperation

Stops recording undo/redo commands into a CompositeCommand and discards the records created so far.

CancelDrag

Cancels the current drag operation.

ChangeUnit

Sets new MeasureUnit value and scales the coordinates of diagram items so that their absolute size remains unchanged.

ClearAll

Removes all items from the diagram.

CommitCompositeOperation

Stops recording undo/redo commands into a CompositeCommand and saves the composite in the history queue.

CopySelection

Creates a copy of the currently selected objects.

CreateThemeFromDefaults

Creates a Theme object representing the default properties of the diagram.

EndDelayUpdate

Continue updating the visual state of items.

EndEdit

Exits inplace-edit mode and either accepts or rejects the changes made to the item's text.

ExecuteCommand

Executes the specified command on this diagram.

FindLinkById

Finds the link that has the specified id value.

FindNodeById

Finds the node that has the specified id value.

GetContentBounds

Returns the smallest rectangle that bounds all diagram objects.

GetItemAt

Overloaded.  

GetLinkAt

Overloaded.  

GetNearestNode

Returns the nearest node whose bounding rectangle is intersected by the circle, defined by origin point and radius.

GetNodeAt

Overloaded.  

GetNodesInViewport

Returns all nodes visible in the current viewport.

HitTestManipulators

Tests whether the specified point is within the manipulator of a diagram object and triggers the manipulator.

Invalidate

Causes the entire visible diagram area to be repainted.

IsItemInteractive

Checks if the specified item can be modified interactively.

IsItemLocked

Checks if the specified item is locked.

IsItemVisible

Checks if the specified item is currently visible.

LoadFromString

Decodes diagram contents from a string that was created with SaveToString.

LoadFromXml

Overloaded.  

PasteSelection

Adds the specified items and groups to the specified diagram document.

RaiseClicked

Overloaded.  

RaiseCreated

Raises the appropriate *Created event according to the type of the specified item.

RaiseDeleting

Raises the appropriate *Deleting event according to the type of the specified item.

RaiseDoubleClicked

Overloaded.  

RaiseLinkTextEdited

Raises the LinkTextEdited event.

RaiseNodeTextEdited

Raises the NodeTextEdited event.

RaisePasted

Raises the appropriate Pasted event.

Redo

Executes again an action saved in the command history.

RegisterClass

Registers a class for serialization support.

RegisterItemClass

Registers a diagram item class for serialization support.

ResizeToFitItem

Resizes the document extents so that the specified item is contained within.

ResizeToFitItems

Overloaded.  

RouteAllLinks

Routes all links in the diagram in a way they do not cross nodes.

SaveToString

Returns a serialized form of the diagram as string

SaveToXml

Overloaded.  

SetScrollerParent

Binds the lane-grid header positions to the offset of a ScrollViewer's scrollbars.

SetZoomFactor

Sets the zoom factor, preserving the on-screen position of the specified diagram point.

StartCompositeOperation

Starts recording undo/redo commands into a CompositeCommand.

StartDelayUpdate

Stops updating the visual state of items.

Undo

Undoes an action saved in the command history.

UpdateRuntimeIndices

For internal use.

UpdateVisualZIndices

For internal use.

ZoomToRect

Zooms and scrolls the view to fit the specified document rectangle in the Diagram's visible area.

 Protected Methods

  Name Description

ArrangeOverride

FrameworkElement.ArrangeOverride override.

OnActionRedone

Raises the ActionRedone event. (Inherited from DiagramBase.)

OnActionUndone

Raises the ActionUndone event. (Inherited from DiagramBase.)

OnApplyTemplate

FrameworkElement.OnApplyTemplate override.

OnBoundsChanged

Raises the BoundsChanged event. (Inherited from DiagramBase.)

OnCellClicked

Raises the CellClicked event. (Inherited from DiagramBase.)

OnCellDoubleClicked

Raises the CellDoubleClicked event. (Inherited from DiagramBase.)

OnClicked

Raises the Clicked event. (Inherited from DiagramBase.)

OnContainerChildAdded

Raises the ContainerChildAdded event. (Inherited from DiagramBase.)

OnContainerChildRemoved

Raises the ContainerChildRemoved event. (Inherited from DiagramBase.)

OnContainerFolded

Raises the ContainerFolded event. (Inherited from DiagramBase.)

OnContainerUnfolded

Raises the ContainerUnfolded event. (Inherited from DiagramBase.)

OnDeserializeControl

Raises the DeserializeControl event. (Inherited from DiagramBase.)

OnDeserializeTag

Raises the DeserializeTag event. (Inherited from DiagramBase.)

OnDoubleClicked

Raises the DoubleClicked event. (Inherited from DiagramBase.)

OnDrawAdjustmentHandles

Raises the DrawAdjustmentHandles event. (Inherited from DiagramBase.)

OnEnterInplaceEditMode

Raises the EnterInplaceEditMode event. (Inherited from DiagramBase.)

OnExpandButtonClicked

Raises the ExpandButtonClicked event. (Inherited from DiagramBase.)

OnHitTestAdjustmentHandles

Raises the HitTestAdjustmentHandles event. (Inherited from DiagramBase.)

OnInitializeLink

Raises the InitializeLink event. (Inherited from DiagramBase.)

OnInitializeNode

Raises the InitializeNode event. (Inherited from DiagramBase.)

OnItemAdded

Raises the ItemAdded event. (Inherited from DiagramBase.)

OnItemRemoved

Raises the ItemRemoved event. (Inherited from DiagramBase.)

OnLaneGridCellCreated

Raises the LaneGridCellCreated event. (Inherited from DiagramBase.)

OnLaneGridHeaderCreated

Raises the LaneGridHeaderCreated event. (Inherited from DiagramBase.)

OnLeaveInplaceEditMode

Raises the LeaveInplaceEditMode event. (Inherited from DiagramBase.)

OnLinkActivated

Raises the LinkActivated event. (Inherited from DiagramBase.)

OnLinkClicked

Raises the LinkClicked event. (Inherited from DiagramBase.)

OnLinkCreated

Raises the LinkCreated event. (Inherited from DiagramBase.)

OnLinkCreating

Raises the LinkCreating event. (Inherited from DiagramBase.)

OnLinkDeactivated

Raises the LinkDeactivated event. (Inherited from DiagramBase.)

OnLinkDeleted

Raises the LinkDeleted event. (Inherited from DiagramBase.)

OnLinkDeleting

Raises the LinkDeleting event. (Inherited from DiagramBase.)

OnLinkDeselected

Raises the LinkDeselected event. (Inherited from DiagramBase.)

OnLinkDoubleClicked

Raises the LinkDoubleClicked event. (Inherited from DiagramBase.)

OnLinkModified

Raises the LinkModified event. (Inherited from DiagramBase.)

OnLinkModifying

Raises the LinkModifying event. (Inherited from DiagramBase.)

OnLinkPasted

Raises the LinkPasted event. (Inherited from DiagramBase.)

OnLinkRouted

Raises the LinkRouted event. (Inherited from DiagramBase.)

OnLinkSelected

Raises the LinkSelected event. (Inherited from DiagramBase.)

OnLinkTextEdited

Raises the LinkTextEdited event. (Inherited from DiagramBase.)

OnMagnifierFactorChanged

Raises the MagnifierFactorChanged event. (Inherited from DiagramBase.)

OnMeasureUnitChanged

Raises the MeasureUnitChanged event. (Inherited from DiagramBase.)

OnNodeActivated

Raises the NodeActivated event. (Inherited from DiagramBase.)

OnNodeClicked

Raises the NodeClicked event. (Inherited from DiagramBase.)

OnNodeCreated

Raises the NodeCreated event. (Inherited from DiagramBase.)

OnNodeCreating

Raises the NodeCreating event. (Inherited from DiagramBase.)

OnNodeDeactivated

Raises the NodeDeactivated event. (Inherited from DiagramBase.)

OnNodeDeleted

Raises the NodeDeleted event. (Inherited from DiagramBase.)

OnNodeDeleting

Raises the NodeDeleting event. (Inherited from DiagramBase.)

OnNodeDeselected

Raises the NodeDeselected event. (Inherited from DiagramBase.)

OnNodeDoubleClicked

Raises the NodeDoubleClicked event. (Inherited from DiagramBase.)

OnNodeModified

Raises the NodeModified event. (Inherited from DiagramBase.)

OnNodeModifying

Raises the NodeModifying event. (Inherited from DiagramBase.)

OnNodePasted

Raises the NodePasted event. (Inherited from DiagramBase.)

OnNodeSelected

Raises the NodeSelected event. (Inherited from DiagramBase.)

OnNodeTextEdited

Raises the NodeTextEdited event. (Inherited from DiagramBase.)

OnRepaint

Raises the Repaint event. (Inherited from DiagramBase.)

OnSelectionChanged

Raises the SelectionChanged event. (Inherited from DiagramBase.)

OnSelectionModified

Raises the SelectionModified event. (Inherited from DiagramBase.)

OnSelectionModifying

Raises the SelectionModifying event. (Inherited from DiagramBase.)

OnSerializeControl

Raises the SerializeControl event. (Inherited from DiagramBase.)

OnSerializeTag

Raises the SerializeTag event. (Inherited from DiagramBase.)

OnSetSelfLoopShape

Raises the SetSelfLoopShape event. (Inherited from DiagramBase.)

OnTreeCollapsed

Raises the TreeCollapsed event. (Inherited from DiagramBase.)

OnTreeExpanded

Raises the TreeExpanded event. (Inherited from DiagramBase.)

OnValidateAnchorPoint

Raises the ValidateAnchorPoint event. (Inherited from DiagramBase.)

OnZoomFactorChanged

Raises the ZoomFactorChanged event. (Inherited from DiagramBase.)

RemoveItem

Removes the specified item from the diagram and creates a record in the undo/redo history.

StartInteraction

Overloaded.  

 See Also