GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / DocumentChanged Event
In This Topic
    DocumentChanged Event
    In This Topic
    All GoDocument.GoDocument.Changed events get re-raised through this event, for the convenience of writing event handlers on the document's view.
    Syntax
    [Category("GoView")]
    [Description("A GoDocument.Changed event occurred (a GoChangedEventHandler)")]
    public event GoChangedEventHandler DocumentChanged
    Event Data

    The event handler receives an argument of type GoChangedEventArgs containing data related to this event. The following GoChangedEventArgs properties provide information specific to this event.

    PropertyDescription
    Gets or sets the GoDocument that raised the Changed event described by this EventArgs.  
    Gets the Object as a GoObject.  
    Gets or sets the general category of document Changed event.  
    Gets or sets whether this event args/undoable edit was created by a document Changed event that represents a call to GoDocument.RaiseChanging or by a call to GoDocument.RaiseChanged.  
    Gets or sets the new integer value information for a change.  
    Gets or sets the new float, PositionF, SizeF, or RectangleF value information for a change.  
    Gets or sets the new arbitrary object value information for a change, including boolean values.  
    Gets or sets the object that was changed by the document Changed event.  
    Gets or sets the previous or old integer value information for a change.  
    Gets or sets the previous or old float, PositionF, SizeF, or RectangleF value information for a change.  
    Gets or sets the previous or old arbitrary object value information for a change, including boolean values.  
    Gets the user-visible string description of this undoable edit.  
    Gets or sets the more detailed kind of document Changed event, depending on the particular Hint value.  
    Remarks
    Because the GoChangedEventArgs that are passed on through this event are actually raised by GoDocument.RaiseChanged and distributed by GoDocument.OnChanged, there is no GoView.RaiseDocumentChanged method as would be conventional. As with all events, it is more efficient to override OnDocumentChanged on GoView or GoDocument.OnChanged on GoDocument than it is to register delegates as event handlers on this event.
    See Also