[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.
Property | Description |
---|---|
Document | Gets or sets the GoDocument that raised the Changed event described by this EventArgs . |
GoObject | Gets the Object as a GoObject. |
Hint | Gets or sets the general category of document Changed event. |
IsBeforeChanging | 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. |
NewInt | Gets or sets the new integer value information for a change. |
NewRect | Gets or sets the new float, PositionF, SizeF, or RectangleF value information for a change. |
NewValue | Gets or sets the new arbitrary object value information for a change, including boolean values. |
Object | Gets or sets the object that was changed by the document Changed event. |
OldInt | Gets or sets the previous or old integer value information for a change. |
OldRect | Gets or sets the previous or old float, PositionF, SizeF, or RectangleF value information for a change. |
OldValue | Gets or sets the previous or old arbitrary object value information for a change, including boolean values. |
PresentationName | Gets the user-visible string description of this undoable edit. |
SubHint | 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