DiagramLite Programmer's Guide
DiagramDocument Members
Constructors Properties Methods Events
 


Represents a collection of diagram pages.

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

 Public Constructors

  Name Description

DiagramDocument

Initializes a new instance of the DiagramDocument class.

 Public Properties

  Name Description

Pages

Gets a list of the diagram pages contained in this document.

 Public Methods

  Name Description

FindPage

Returns the first page with the specified title.

LoadFromString

Loads a diagram from the specified string.

LoadFromXml

Overloaded.  

SaveToString

Overloaded.  

SaveToXml

Overloaded.  

 Inherited Protected Methods

  Name Description

OnActionRedone

Raises the ActionRedone event. (Inherited from DiagramBase.)

OnActionUndone

Raises the ActionUndone event. (Inherited from DiagramBase.)

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

 Inherited Public Events

  Name Description

ActionRedone

Raised when an action is redone. (Inherited from DiagramBase.)

ActionUndone

Raised when an action is undone. (Inherited from DiagramBase.)

ActiveLayerChanged

Raised when the diagram's active layer has changed. (Inherited from DiagramBase.)

BoundsChanged

Raised when the Bounds property value has changed. (Inherited from DiagramBase.)

CellClicked

Raised when the user clicks a table's cell. (Inherited from DiagramBase.)

CellDoubleClicked

Raised when the user double-clicks a table's cell. (Inherited from DiagramBase.)

Clicked

Raised when the user clicks the diagram at a point where no items are located. (Inherited from DiagramBase.)

ContainerChildAdded

Raised when a node is added to a ContainerNode, either programmatically or by the user. (Inherited from DiagramBase.)

ContainerChildRemoved

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

ContainerFolded

Raised when the user folds a container by clicking the arrow-up button in the container's caption area. (Inherited from DiagramBase.)

ContainerUnfolded

Raised when the user unfolds a container by clicking the arrow-down button in the container's caption area. (Inherited from DiagramBase.)

DeserializeControl

Lets you load the attributes of controls hosted inside ControlNodes. (Inherited from DiagramBase.)

DeserializeTag

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

DoubleClicked

Raised when the user double-clicks the diagram at a point where no items are located. (Inherited from DiagramBase.)

DrawAdjustmentHandles

Raised when item's adjustment handles must be custom drawn. (Inherited from DiagramBase.)

EnterInplaceEditMode

Raised when entering inplace-edit mode. (Inherited from DiagramBase.)

ExpandButtonClicked

Raised when the user clicks the [+/-] button of an Expandable node. (Inherited from DiagramBase.)

HitTestAdjustmentHandles

Raised when custom hit testing of item's adjustment handles must be performed. (Inherited from DiagramBase.)

InitializeLink

Raised when the user starts drawing a new link, just after the DiagramLink instance is created. (Inherited from DiagramBase.)

InitializeNode

Raised when the user starts drawing a new node, just after the DiagramNode instance is created. (Inherited from DiagramBase.)

ItemAdded

Raised when an item is added to the diagram, either programmatically or interactively. (Inherited from DiagramBase.)

ItemRemoved

Raised when an item is removed from the diagram, either programmatically or interactively. (Inherited from DiagramBase.)

LaneGridCellCreated

Raised when a lane grid's cell has been created to allow additional cusomtization of its presentation. (Inherited from DiagramBase.)

LaneGridHeaderCreated

Raised when a lane grid's header has been created to allow additional cusomtization of its presentation. (Inherited from DiagramBase.)

LeaveInplaceEditMode

Raised when leaving inplace-edit mode. (Inherited from DiagramBase.)

LinkActivated

Raised when a link becomes the ActiveItem. (Inherited from DiagramBase.)

LinkClicked

Raised when the user clicks a link. (Inherited from DiagramBase.)

LinkCreated

Raised when the user draws a new link. (Inherited from DiagramBase.)

LinkCreating

A validation event raised while the user is drawing a new link. (Inherited from DiagramBase.)

LinkDeactivated

Raised when a link is no longer the ActiveItem. (Inherited from DiagramBase.)

LinkDeleted

Raised when a link is deleted, either programmatically or by the user. (Inherited from DiagramBase.)

LinkDeleting

Raised when the user tries to delete a link, this event lets you cancel the operation. (Inherited from DiagramBase.)

LinkDeselected

Raised when a link is deselected, either programmatically or by the user. (Inherited from DiagramBase.)

LinkDoubleClicked

Raised when the user double-clicks a link. (Inherited from DiagramBase.)

LinkModified

Raised when the user moves any control point of a link. (Inherited from DiagramBase.)

LinkModifying

A validation event raised while the user is modifying a link. (Inherited from DiagramBase.)

LinkPasted

Raised when a link has been pasted from the clipboard. (Inherited from DiagramBase.)

LinkRouted

Raised when a link is routed by the auto-routing algorithm. (Inherited from DiagramBase.)

LinkSelected

Raised when a link is selected, either programmatically or by the user. (Inherited from DiagramBase.)

LinkTextEdited

Raised when the user edits the text of a link. (Inherited from DiagramBase.)

MagnifierFactorChanged

Occurs when the magnifier factor changes. (Inherited from DiagramBase.)

MeasureUnitChanged

Raised when the MeasureUnit property value has changed. (Inherited from DiagramBase.)

NodeActivated

Raised when a node becomes the ActiveItem. (Inherited from DiagramBase.)

NodeClicked

Raised when the user clicks a node. (Inherited from DiagramBase.)

NodeCreated

Occurs when the user draws a new node. (Inherited from DiagramBase.)

NodeCreating

A validation event raised while the user is drawing a new node. (Inherited from DiagramBase.)

NodeDeactivated

Raised when a node is no longer the ActiveItem. (Inherited from DiagramBase.)

NodeDeleted

Raised when a node is deleted, either programmatically or by the user. (Inherited from DiagramBase.)

NodeDeleting

Raised when the user tries to delete a node, this event lets you cancel the operation. (Inherited from DiagramBase.)

NodeDeselected

Raised when a node is deselected, either programmatically or by the user. (Inherited from DiagramBase.)

NodeDoubleClicked

Raised when the user double-clicks a node. (Inherited from DiagramBase.)

NodeModified

Raised when the user moves or resizes a node. (Inherited from DiagramBase.)

NodeModifying

A validation event raised while the user is moving or resizing a node. (Inherited from DiagramBase.)

NodePasted

Raised when a node has been pasted from the clipboard. (Inherited from DiagramBase.)

NodeSelected

Raised when a node is selected, either programmatically or by the user. (Inherited from DiagramBase.)

NodeTextEdited

Raised when the user edits the text of a node. (Inherited from DiagramBase.)

Repaint

Raised when the diagram views should be repainted. (Inherited from DiagramBase.)

SelectionChanged

Raised when an item is added to or removed from the selection. (Inherited from DiagramBase.)

SelectionModified

Raised when the user moves or resizes multiple selected items. (Inherited from DiagramBase.)

SelectionModifying

Raised while the user is moving or resizing multiple selected items, this event lets you cancel the modification. (Inherited from DiagramBase.)

SerializeControl

Lets you save the attributes of controls hosted inside ControlNodes. (Inherited from DiagramBase.)

SerializeTag

Raised when the Tag of a diagram item must be serialized into an XML document. (Inherited from DiagramBase.)

SetSelfLoopShape

Raised when a link becomes a self-loop, giving you a chance to override the default look shape. (Inherited from DiagramBase.)

TreeCollapsed

Raised when a user collapses a tree branch by clicking the [-] button of an Expandable node. (Inherited from DiagramBase.)

TreeExpanded

Raised when a user expands a tree branch by clicking the [+] button of an Expandable node. (Inherited from DiagramBase.)

ValidateAnchorPoint

A validation event that lets you approve or reject connecting a link to an anchor point. (Inherited from DiagramBase.)

ZoomFactorChanged

Occurs when the zoom factor changes. (Inherited from DiagramBase.)

 See Also

DiagramDocument Class
MindFusion.Diagramming Namespace