GoDiagram Win Reference
GoDocument Class Methods


For a list of all members of this type, see GoDocument members.

Public Methods
 NameDescription
Public MethodAbortTransactionCall the UndoManager's GoUndoManager.AbortTransaction method.  
Public MethodAddAdd an object to the DefaultLayer, or to the LinksLayer if the object is an IGoLink.  
Public MethodAddCopyAdd a copy of an object into this document at the given point.  
Public MethodBeginUpdateViewsCause all views to stop painting.  
Public MethodCanCopyObjectsCalled to see if the user can copy selected objects in this document.  
Public MethodCanDeleteObjectsCalled to see if the user can delete selected objects in this document.  
Public MethodCanEditObjectsCalled to see if the user can edit objects in this document.  
Public MethodCanInsertObjectsCalled to see if the user can insert objects in this document.  
Public MethodCanLinkObjectsCalled to see if the user can link objects in this document.  
Public MethodCanMoveObjectsCalled to see if the user can move selected objects in this document.  
Public MethodCanRedoThis predicate is true if this document has an UndoManager whose CanRedo predicate is true.  
Public MethodCanReshapeObjectsCalled to see if the user can reshape resizable objects in this document.  
Public MethodCanResizeObjectsCalled to see if the user can resize selected objects in this document.  
Public MethodCanSelectObjectsCalled to see if the user can select objects in this document.  
Public MethodCanUndoThis predicate is true if this document has an UndoManager whose CanUndo predicate is true.  
Public MethodChangeValueThis method is called by GoChangedEventArgs in order to perform the Undo or Redo or a particular document change.  
Public MethodClearRemove all objects from all layers in this document.  
Public Methodstatic (Shared in Visual Basic)ComputeBoundsOverloaded. Get the smallest rectangle that includes the bounds of all of the objects in a collection.  
Public MethodContainsDetermine if an object belongs to this document.  
Public MethodCopyMake a copy of this document.  
Public MethodCopyArrayGets a newly allocated array of all of the GoObjects in this collection.  
Public MethodCopyFromCollectionOverloaded. Make copies of a collection of objects in this document.  
Public MethodCopyNewValueForRedoThis is called during the construction of a GoChangedEventArgs in order to record the newer/next value for a document change.  
Public MethodCopyOldValueForUndoThis is called during the construction of a GoChangedEventArgs in order to record the older/previous value for a document change.  
Public MethodCopyToCopy references to all of the document objects into the given array of GoObjects.  
Public MethodCreateCopyDictionaryAllocate a GoCopyDictionary for use in a call to CopyFromCollection(IGoCollection,Boolean,Boolean,SizeF,GoCopyDictionary)  
Public MethodDoDelayedRoutingCall IGoRoutable.CalculateRoute on each of the objects in the DelayedRoutings collection, and clear that collection.  
Public MethodEndUpdateViewsCause all views to continue painting normally.  
Public MethodEnsureUniquePartIDMake sure every IGoIdentifiablePart in this document has a unique IGoIdentifiablePart.PartID.  
Public MethodFindNodeOverloaded. Search this document for an object whose IGoLabeledPart.Text property matches a given string, possibly considering the initial part of the part's text string and possibly comparing in a case-insensitive manner.  
Public MethodFindPartReturns an IGoIdentifiablePart in this document with the given ID.  
Public MethodFinishTransactionCall the UndoManager's GoUndoManager.FinishTransaction method.  
Public MethodGetAvoidableRectangleReturn the effective bounds of an object that should be avoided when routing links whose GoLink.AvoidsNodes property is true.  
Public MethodGetEnumeratorGet an Enumerator that iterates over all layers to include all document objects.  
Public MethodInvalidateViewsCause all views to completely repaint sometime in the future.  
Public MethodIsAvoidableThis predicate determines whether the given object is considered when trying to route links whose GoLink.AvoidsNodes property is true.  
Public MethodIsUnoccupiedReturns true if there are any "avoidable" objects within or intersecting the given rectangular region.  
Public Methodstatic (Shared in Visual Basic)MakesDirectedCycleThis method returns true if adding a link from a to b would result in a cycle of directed links going through the node a.  
Public Methodstatic (Shared in Visual Basic)MakesDirectedCycleFastThis method returns true if adding a link from a to b would result in a cycle of directed links going through the node a.  
Public Methodstatic (Shared in Visual Basic)MakesUndirectedCycleThis method returns true if adding a link from a to b would result in a cycle or loop of links, regardless of link direction, going through the node a.  
Public MethodMergeLayersFromMake sure this document has all of the identified layers of another document.  
Public MethodPickObjectFind the top-most (front-most) document object at a given point.  
Public MethodPickObjectsReturn a collection of objects that can be picked at a particular point.  
Public MethodPickObjectsInRectangleReturn a collection of objects that are surrounded by a given rectangle.  
Public MethodRaiseChangedAny change to a document or to a part of a document may call this method to invoke the OnChanged method, after the change has occurred.  
Public MethodRaiseChangingCall this method to invoke the OnChanged method before any change occurs.  
Public MethodRedoCall the UndoManager's GoUndoManager.Redo method if CanRedo is true.  
Public MethodRemoveRemove an object from this document.  
Public MethodSetModifiableThis method sets some properties that determine whether the user can modify the document from any view.  
Public MethodStartTransactionCall the UndoManager's GoUndoManager.StartTransaction method.  
Public MethodTestSerializationTest serializing and deserializing this document, to help discover unserializable objects by getting SerializationExceptions when debugging serialization errors such as during a copy-and-paste.  
Public MethodUndoCall the UndoManager's GoUndoManager.Undo method if CanUndo is true.  
Public MethodUpdateDocumentBoundsCalled when a document object's bounds changes to possibly update the document's bounds.  
Public MethodUpdateRouteIf SuspendsRouting is true add the given IGoRoutableGoObject to the DelayedRoutings collection; otherwise just call CalculateRoute immediately.  
Public MethodUpdateViewsCause all views to repaint their invalidated areas.  
Top
Protected Methods
 NameDescription
Protected MethodOnChangedCalled when any part of this document has changed, to invoke all Changed event handlers.  
Top
See Also

Reference

GoDocument Class
Northwoods.Go Namespace

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback