|Visual Basic (Declaration)|
Public Event MarkChanging As AnnotationMarkHandler
|Visual Basic (Usage)||Copy Code|
Dim instance As Annotation Dim handler As AnnotationMarkHandler AddHandler instance.MarkChanging, handler
public event AnnotationMarkHandler MarkChanging
In JScript, you can handle the events defined by another class, but you cannot define your own.
|Managed Extensions for C++|
public: __event AnnotationMarkHandler* MarkChanging
public: event AnnotationMarkHandler^ MarkChanging
The event handler receives an argument of type AnnotationMarkEventArgs containing data related to this event. The following AnnotationMarkEventArgs properties provide information specific to this event.
|Mark||Gets or sets the mark that has changed.|
This event will fire before a property of the mark is changed. For example when the ForeColor is about to be changed whether this has been done via a context menu, the toolbar, or programmatically.
This event will also fire when the user initiates updating the size or location by grabbing a handle. This will not be drawn once the object is sized or while it is being moved, only when the handle is grabbed. This event will also not fire if the location or size are set programmatically.
This call could easily become recursive if you set a property in response to an event. So this event is "blocked" when inside the event itself preventing this from happening. In other words if you change a property in response to this event it will not generate another changed event.
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