GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoDocument Class / SuspendsUpdates Property
In This Topic
    SuspendsUpdates Property (GoDocument)
    In This Topic
    Gets or sets whether any Changed event handlers are called upon a document or document object change.
    Syntax
    [Browsable(false)]
    public bool SuspendsUpdates {get; set;}

    Property Value

    A value of true means that any Changed event handlers and any UndoManager are not called. A value of false means that the notifications do take place. The default value is false.
    Remarks

    Warning! You probably shouldn't be using this property.

    When this property is true, no views of this document will be updated as the document is changed, and no undo/redo information is kept. When you set the property to false again, you will need to make sure all the views are correct (you may wish to call InvalidateViews) and that the UndoManager (if any) is in a satisfactory state (you may wish to call GoUndoManager.Clear, so that it cannot be confused by the loss of any undo/redo information while this property was true). You may also need to update the document's bounds (TopLeft and Size) and perhaps call EnsureUniquePartID. No Changed event is raised when this property is set.

    See Also