MindFusion.Wpf Pack Programmer's Guide
DiagramBase Members
Constructors Properties Methods Events
 


The base class of the Diagram and DiagramDocument classes.

The following tables list the members exposed by the DiagramBase type.

 Protected Constructors

  Name Description

DiagramBase

Initializes a new instance of the DiagramBase class.

 Public Properties

  Name Description

DocumentPaginator

Gets or sets the DocumentPaginator used to retrieve pages when printing the diagram.

LicenseKey

Gets or sets the license key of the control.

PrintOptions

Gets an object which provides customization properties for printing and print-preview.

XmlOptions

An XmlOptions object providing properties for customizing the XML serialization process.

 Public Methods

  Name Description

Print

Shows Print dialog and prints the diagram.

PrintPreview

Overloaded. Displays the diagram in a Print Preview window.

 Protected Methods

  Name Description

OnActionRecorded

Raises the ActionRecorded event.

OnActionRecording

Raises the ActionRecording event.

OnActionRedone

Raises the ActionRedone event.

OnActionUndone

Raises the ActionUndone event.

OnArranged

Raises the Arranged event.

OnBeginLoad

Raises the BeginLoad event.

OnBoundsChanged

Raises the BoundsChanged event.

OnCellClicked

Raises the CellClicked event.

OnCellDoubleClicked

Raises the CellDoubleClicked event.

OnCellTextEdited

Raises the CellTextEdited event.

OnCellTextEditing

Raises the CellTextEditing event to validate entering inplace edit mode.

OnClicked

Raises the Clicked event.

OnContainerChildAdded

Raises the ContainerChildAdded event.

OnContainerChildAdding

Raises the ContainerChildAdding event.

OnContainerChildRemoved

Raises the ContainerChildRemoved event.

OnContainerChildRemoving

Raises the ContainerChildRemoving event.

OnContainerFolded

Raises the ContainerFolded event.

OnContainerUnfolded

Raises the ContainerUnfolded event.

OnContextMenuOpening

Raises the ContextMenuOpening event.

OnCopyHostedControl

Raises the CopyHostedControl event.

OnDefaultShapeChanged

Raises the DefaultShapeChanged event.

OnDeserializeControl

Raises the DeserializeControl event.

OnDeserializeTag

Raises the DeserializeTag event.

OnDestinationAnchorChanged

Raises the DestinationAnchorChanged event.

OnDirtyChanged

Raises the DirtyChanged event.

OnDoubleClicked

Raises the DoubleClicked event.

OnDrawAdjustmentHandles

Raises the DrawAdjustmentHandles event.

OnDrawAnchorPoint

Raises the DrawAnchorPoint event.

OnDrawBackground

Raises the DrawBackground event.

OnDrawCell

Raises the DrawCell event.

OnDrawForeground

Raises the DrawForeground event.

OnDrawLaneHeader

Raises the DrawLaneHeader event.

OnDrawLink

Raises the DrawLink event.

OnDrawNode

Raises the DrawNode event.

OnEndLoad

Raises the EndLoad event.

OnEnterInplaceEditMode

Raises the EnterInplaceEditMode event.

OnExpandButtonClicked

Raises the ExpandButtonClicked event.

OnGroupDestroyed

Raises the GroupDestroyed event.

OnHitTestAdjustmentHandles

Raises the HitTestAdjustmentHandles event.

OnInitializeLasso

Raises the InitializeLasso event.

OnInitializeLink

Raises the InitializeLink event.

OnInitializeNode

Raises the InitializeNode event.

OnItemAdded

Raises the ItemAdded event.

OnItemRemoved

Raises the ItemRemoved event.

OnJsonDeserializeTag

Raises the JsonDeserializeTag event.

OnJsonSerializeTag

Raises the JsonSerializeTag event.

OnLaneGridHeaderTextEdited

Raises the LaneGridHeaderTextEdited event.

OnLaneGridHeaderTextEditing

Raises the LaneGridHeaderTextEditing event.

OnLeaveInplaceEditMode

Raises the LeaveInplaceEditMode event.

OnLinkActivated

Raises the LinkActivated event.

OnLinkClicked

Raises the LinkClicked event.

OnLinkCreateCancelled

Raises the LinkCreateCancelled event.

OnLinkCreated

Raises the LinkCreated event.

OnLinkCreating

Raises the LinkCreating event.

OnLinkDeactivated

Raises the LinkDeactivated event.

OnLinkDeleted

Raises the LinkDeleted event.

OnLinkDeleting

Raises the LinkDeleting event.

OnLinkDeselected

Raises the LinkDeselected event.

OnLinkDoubleClicked

Raises the LinkDoubleClicked event.

OnLinkMenuOpening

Raises the LinkMenuOpening event.

OnLinkModified

Raises the LinkModified event.

OnLinkModifyCancelled

Raises the LinkModifyCancelled event.

OnLinkModifying

Raises the LinkModifying event.

OnLinkPasted

Raises the LinkPasted event.

OnLinkRouted

Raises the LinkRouted event.

OnLinkSelected

Raises the LinkSelected event.

OnLinkSelecting

Raises the LinkSelecting event.

OnLinkSplit

Raises the LinkSplit event.

OnLinkStartModifying

Raises the LinkStartModifying event.

OnLinkTextEdited

Raises the LinkTextEdited event.

OnLinkTextEditing

Raises the LinkTextEditing event to validate entering inplace edit mode.

OnMagnifierFactorChanged

Raises the MagnifierFactorChanged event.

OnMeasureUnitChanged

Raises the MeasureUnitChanged event.

OnNodeActivated

Raises the NodeActivated event.

OnNodeClicked

Raises the NodeClicked event.

OnNodeCreateCancelled

Raises the NodeCreateCancelled event.

OnNodeCreated

Raises the NodeCreated event.

OnNodeCreating

Raises the NodeCreating event.

OnNodeDeactivated

Raises the NodeDeactivated event.

OnNodeDeleted

Raises the NodeDeleted event.

OnNodeDeleting

Raises the NodeDeleting event.

OnNodeDeselected

Raises the NodeDeselected event.

OnNodeDoubleClicked

Raises the NodeDoubleClicked event.

OnNodeMenuOpening

Raises the NodeMenuOpening event.

OnNodeModified

Raises the NodeModified event.

OnNodeModifyCancelled

Raises the NodeModifyCancelled event.

OnNodeModifying

Raises the NodeModifying event.

OnNodePasted

Raises the NodePasted event.

OnNodeSelected

Raises the NodeSelected event.

OnNodeSelecting

Raises the NodeSelecting event.

OnNodeStartModifying

Raises the NodeStartModifying event.

OnNodeTextEdited

Raises the NodeTextEdited event.

OnNodeTextEditing

Raises the NodeTextEditing event to validate entering inplace edit mode.

OnOriginAnchorChanged

Raises the OriginAnchorChanged event.

OnSelectionChanged

Raises the SelectionChanged event.

OnSelectionModified

Raises the SelectionModified event.

OnSelectionModifyCancelled

Raises the SelectionModifyCancelled event.

OnSelectionModifying

Raises the SelectionModifying event.

OnSelectionStartModifying

Raises the SelectionStartModifying event.

OnSerializeControl

Raises the SerializeControl event.

OnSerializeTag

Raises the SerializeTag event.

OnSetSelfLoopShape

Raises the SetSelfLoopShape event.

OnShapeModified

Raises the ShapeModified event.

OnTableColumnResized

Raises the TableColumnResized event.

OnTableColumnResizing

Raises the TableColumnResizing event.

OnTableRowResized

Raises the TableRowResized event.

OnTableRowResizing

Raises the TableRowResizing event.

OnTableSectionCollapsed

Raises the TableSectionCollapsed event.

OnTableSectionExpanded

Raises the TableSectionExpanded event.

OnTreeCollapsed

Raises the TreeCollapsed event.

OnTreeExpanded

Raises the TreeExpanded event.

OnTreeItemTextEditing

Raises the TreeItemTextEditing event.

OnValidateAnchorPoint

Raises the ValidateAnchorPoint event.

OnValidateLinkCrossing

Raises the ValidateLinkCrossing event.

 Public Events

  Name Description

ActionRecorded

Occurs when an action is recorded in undo history.

ActionRecording

A validation event raised before an action is recorded in the undo buffer.

ActionRedone

Raised when an action is redone.

ActionUndone

Raised when an action is undone.

ActiveLayerChanged

Raised when the diagram's active layer has changed.

Arranged

Raised when the diagram's visual tree has been arranged.

BeginLoad

Raised when the component starts loading diagram data from a file or memory stream.

BoundsChanged

Raised when the Bounds property value has changed.

CellClicked

Raised when the user clicks a table's cell.

CellDoubleClicked

Raised when the user double-clicks a table's cell.

CellTextEdited

Raised when the user edits the text of a table's cell.

CellTextEditing

A validation event that can prevent users from editing the text of a table's cell.

Clicked

Raised when the user clicks the diagram at a point where no items are located.

ContainerChildAdded

Raised when a node is added to a ContainerNode, either programmatically or by the user.

ContainerChildAdding

A validation event raised to let you prevent users from adding child nodes to a container.

ContainerChildRemoved

Raised when a node is removed from a ContainerNode, either programmatically or by the user.

ContainerChildRemoving

A validation event raised to let you prevent users from removing child nodes from a container.

ContainerFolded

Raised when the user folds a container by clicking the arrow-up button in the container's caption area.

ContainerUnfolded

Raised when the user unfolds a container by clicking the arrow-down button in the container's caption area.

ContextMenuOpening

A validation event raised when the user opens diagram's ContextMenu.

CopyHostedControl

Raised when a ControlNode is cloned. Use this event to copy the hosted control's properties.

DefaultShapeChanged

Raised when the DefaultShape property value has changed.

DeserializeControl

Lets you load the attributes of controls hosted inside ControlNode nodes.

DeserializeTag

Raised when the Tag or Id of a diagram item must be deserialized from XML format.

DestinationAnchorChanged

Raised when the DestinationAnchor property value of a link has changed.

DirtyChanged

Raised when the Dirty property value has changed.

DoubleClicked

Raised when the user double-clicks the diagram at a point where no items are located.

DrawAdjustmentHandles

Raised when item's adjustment handles must be custom drawn.

DrawAnchorPoint

Raised when an anchor point must be custom drawn.

DrawBackground

Raised to let you custom draw the diagram background.

DrawCell

Raised when a table's cell must be custom drawn.

DrawForeground

Raised to let you custom draw the diagram foreground.

DrawLaneHeader

Raised to let you custom-draw lane headers in the LaneGrid.

DrawLink

Raised when a diagram link must be custom drawn.

DrawNode

Raised when a diagram node must be custom drawn.

EndLoad

Raised when the component ends loading diagram data from a file or memory stream.

EnterInplaceEditMode

Raised when entering inplace-edit mode.

ExpandButtonClicked

Raised when the user clicks the [±] button of an Expandable node.

GroupDestroyed

Raised when a Group object is destroyed.

HitTestAdjustmentHandles

Raised when custom hit testing of item's adjustment handles must be performed.

InitializeLasso

Raised when the user starts drawing a selection lasso, before it is rendered on screen.

InitializeLink

Raised when the user starts drawing a new link, just after the DiagramLink instance is created.

InitializeNode

Raised when the user starts drawing a new node, just after the DiagramNode instance is created.

ItemAdded

Raised when an item is added to the diagram, either programmatically or interactively.

ItemRemoved

Raised when an item is removed from the diagram, either programmatically or interactively.

JsonDeserializeTag

Raised when the Tag of a diagram item must be deserialized from JSON.

JsonSerializeTag

Raised when the Tag of a diagram item must be serialized to JSON.

LaneGridHeaderTextEdited

Raised when the user edits the text of a lane grid header.

LaneGridHeaderTextEditing

A validation event that lets you approve or reject changes made to the text of a lane grid header.

LeaveInplaceEditMode

Raised when leaving inplace-edit mode.

LinkActivated

Raised when a link becomes the ActiveItem.

LinkClicked

Raised when the user clicks a link.

LinkCreateCancelled

Raised when the user cancels link creation.

LinkCreated

Raised when the user draws a new link.

LinkCreating

A validation event raised while the user is drawing a new link.

LinkDeactivated

Raised when a link is no longer the ActiveItem.

LinkDeleted

Raised when a link is deleted, either programmatically or by the user.

LinkDeleting

Raised when the user tries to delete a link, this event lets you cancel the operation.

LinkDeselected

Raised when a link is deselected, either programmatically or by the user.

LinkDoubleClicked

Raised when the user double-clicks a link.

LinkMenuOpening

A validation event raised when the user opens link's ContextMenu.

LinkModified

Raised when the user moves any control point of a link.

LinkModifyCancelled

Raised when the user cancels move or resize operation being done on a link.

LinkModifying

A validation event raised while the user is modifying a link.

LinkPasted

Raised when a link has been pasted from the clipboard.

LinkRouted

Raised when a link is routed by the auto-routing algorithm.

LinkSelected

Raised when a link is selected, either programmatically or by the user.

LinkSelecting

Occurs when users try to select a link, giving you a chance to cancel the operation.

LinkSplit

Raised when the user splits a link interactively.

LinkStartModifying

A validation event raised when the user starts modifying a link.

LinkTextEdited

Raised when the user edits the text of a link.

LinkTextEditing

A validation event that lets you approve or reject changes made to the text of a link.

MagnifierFactorChanged

Occurs when the magnifier factor changes.

MeasureUnitChanged

Raised when the MeasureUnit property value has changed.

NodeActivated

Raised when a node becomes the ActiveItem.

NodeClicked

Raised when the user clicks a node.

NodeCreateCancelled

Raised when the user cancels node creation.

NodeCreated

Occurs when the user draws a new node.

NodeCreating

A validation event raised while the user is drawing a new node.

NodeDeactivated

Raised when a node is no longer the ActiveItem.

NodeDeleted

Raised when a node is deleted, either programmatically or by the user.

NodeDeleting

Raised when the user tries to delete a node, this event lets you cancel the operation.

NodeDeselected

Raised when a node is deselected, either programmatically or by the user.

NodeDoubleClicked

Raised when the user double-clicks a node.

NodeMenuOpening

A validation event raised when the user opens node's ContextMenu.

NodeModified

Raised when the user moves or resizes a node.

NodeModifyCancelled

Raised when the user cancels move or resize operation being done on a node.

NodeModifying

A validation event raised while the user is moving or resizing a node.

NodePasted

Raised when a node has been pasted from the clipboard.

NodeSelected

Raised when a node is selected, either programmatically or by the user.

NodeSelecting

Raised when the user tries to select a node, this event lets you cancel the operation.

NodeStartModifying

A validation event raised when the user starts modifying a node.

NodeTextEdited

Raised when the user edits the text of a node.

NodeTextEditing

A validation event that lets you approve or reject changes made to the text of a node.

OriginAnchorChanged

Raised when the OriginAnchor property value of a link has changed.

SelectionChanged

Raised when an item is added to or removed from the selection.

SelectionModified

Raised when the user moves or resizes multiple selected items.

SelectionModifyCancelled

Raised when the user cancels moving or resizing multiple selected items.

SelectionModifying

Raised while the user is moving or resizing multiple selected items, this event lets you cancel the modification.

SelectionStartModifying

A validation event raised when the user starts moving or resizing multiple selected items.

SerializeControl

Lets you save the attributes of controls hosted inside ControlNodes.

SerializeTag

Raised when the Tag or Id of a diagram item must be serialized into an XML document.

SetSelfLoopShape

Raised when a link becomes a self-loop, giving you a chance to override the default look shape.

ShapeModified

Raised when the user modifies the shape of a ShapeNode by moving one of the control points corresponding to shape formula parameters.

TableColumnResized

Raised when the user finishes resizing a column in a table.

TableColumnResizing

Raised when the user resizes a column in a table interactively.

TableRowResized

Raised when the user finishes resizing a row in a table.

TableRowResizing

Raised when the user resizes a row in a table interactively.

TableSectionCollapsed

Raised when the user collapses the rows of a table's section by clicking the [-] button in the section's header row.

TableSectionExpanded

Raised when the user expands the rows of a table's section by clicking the [+] button in the section's header row.

TreeCollapsed

Raised when a user collapses a tree branch by clicking the [-] button of an Expandable node.

TreeExpanded

Raised when a user expands a tree branch by clicking the [+] button of an Expandable node.

TreeItemTextEditing

A validation event that lets you approve or reject changes made to the text of a TreeViewItem.

ValidateAnchorPoint

A validation event that lets you approve or reject connecting a link to an anchor point.

ValidateLinkCrossing

A validation event that lets you approve or reject displaying a decoration at the intersection point of links.

 See Also

DiagramBase Class
MindFusion.Diagramming.Wpf Namespace