GoDiagram Web Reference
DocumentChanged Event

All GoDocument.GoDocument.Changed events get re-raised through this event, for the convenience of writing event handlers on the document's view.
Syntax
'Declaration
 
<CategoryAttribute("GoView")>
<DescriptionAttribute("A GoDocument.Changed event occurred (a GoChangedEventHandler)")>
Public Event DocumentChanged As GoChangedEventHandler
[CategoryAttribute("GoView")]
[DescriptionAttribute("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
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 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.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoView Class
GoView Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback