Northwoods.GoWPF 2.2.4 Assembly
IDiagramModel Interface Members
Properties  Methods  Events

The following tables list the members exposed by IDiagramModel.

Public Properties
 NameDescription
 PropertyDataFormat Gets or sets the format of this model's data.  
 PropertyIsChangingModelThis property is true during a call to ChangeModel, indicating a change happening due to an undo or a redo.  
 PropertyIsInTransaction True if there is an UndoManager and a transaction has been started.  
 PropertyIsModified Gets or sets whether this model is considered changed from an earlier state.  
 PropertyModifiable Gets or sets whether various model-changing methods are enabled.  
 PropertyName A name for this model.  
 PropertyNodesSource Gets or sets the collection of node data items for the model.  
 PropertySkipsUndoManagerGets or sets a flag that controls whether the model notifies any UndoManager that a change has occurred.  
 PropertyUndoManagerGets or sets the UndoManager for this model.  
Top
Public Methods
 NameDescription
 MethodAddCollectionCopy Copy existing data and add to this model.  
 MethodAddLink Add a link between one node/port and another node/port.  
 MethodAddNodeAdd a node data to NodesSource.  
 MethodAddNodeCopy Add a copy of a node data to this model.  
 MethodChangeModel This is called during an Undo or a Redo to actually make state changes to this model or to this model's data.  
 MethodClearUnresolvedReferences Forget all unresolved delayed or forward references.  
 MethodCommitTransaction Call the UndoManager's CommitTransaction method.  
 MethodCreateCopyDictionaryCreate an ICopyDictionary initialized for this model.  
 MethodCreateDataCollectionCreate an empty IDataCollection for this model.  
 MethodCreateInitializedCopy Create a copy of this model initialized with different data.  
 MethodDoNodeAddedThis should be called when a node data object is added to the NodesSource collection.  
 MethodDoNodeKeyChanged This should be called when a node data's key value may have changed.  
 MethodDoNodeRemovedThis should be called when a node data object is removed from the NodesSource collection.  
 MethodFindNodeByKey Given a key, find the node data with that key.  
 MethodGetCategoryForNode To help distinguish between different kinds of nodes, each node has a "category" that is just a string.  
 MethodGetConnectedNodesForNode Return a sequence of node data that are directly connected to a given node, in either direction.  
 MethodGetFromNodesForNode Return a sequence of node data that are directly connected by links going into a given node.  
 MethodGetNodeType Return the Type of the node data.  
 MethodGetToNodesForNode Return a sequence of node data that are directly connected by links coming out from a given node.  
 MethodIsLinked This predicate is true if there is a link from one node data/port to another one.  
 MethodIsLinkValid This predicate is true if adding a link between two nodes/ports would result in a valid graph.  
 MethodIsNodeData This predicate is true if the argument is a node data in this model.  
 MethodIsNodeType This predicate is true when the argument is an instance of the node data Type.  
 MethodRaiseChangedRaise a Changed event, given a ModelChangedEventArgs.  
 MethodRemoveLink Remove all links connecting the two nodes/ports in the one direction.  
 MethodRemoveNodeRemove node data from NodesSource.  
 MethodRollbackTransaction Call the UndoManager's RollbackTransaction method.  
 MethodStartTransaction Call the UndoManager's StartTransaction method.  
Top
Public Events
 NameDescription
 EventChanged The Changed event is raised whenever the model is modified.  
Top
See Also

Reference

IDiagramModel Interface
Northwoods.GoXam.Model Namespace
ITreeModel Interface
IConnectedModel Interface
ILinksModel Interface
IGroupsModel Interface
DiagramModel Class
GraphLinksModel<NodeType,NodeKey,PortKey,LinkType> Class
GraphModel<NodeType,NodeKey> Class
TreeModel<NodeType,NodeKey> Class

 

 


© Northwoods Software 2017. All Rights Reserved.

Send Feedback