'Declaration
Public Event AnnotationMoved As GdViewer.AnnotationMovedHandler
public event GdViewer.AnnotationMovedHandler AnnotationMoved
public event AnnotationMoved: GdViewer.AnnotationMovedHandler;
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event GdViewer.AnnotationMovedHandler* AnnotationMoved
public: event GdViewer.AnnotationMovedHandler^ AnnotationMoved
Event Data
The event handler receives an argument of type GdViewer.AnnotationMovedEventArgs containing data related to this event. The following GdViewer.AnnotationMovedEventArgs properties provide information specific to this event.
Property | Description |
---|---|
AnnotationIdx | The 0-based index of the moved annotation within the current page of the displayed document. It is a value from 0 to GetAnnotationCount-1. |
Handled | (Inherited from System.Windows.RoutedEventArgs) |
OriginalSource | (Inherited from System.Windows.RoutedEventArgs) |
RoutedEvent | (Inherited from System.Windows.RoutedEventArgs) |
Source | (Inherited from System.Windows.RoutedEventArgs) |
Remarks
Be aware, that this event only handles GdPicture/XMP annotations.
Example
How to utilize this event in your GdViewer control.
'We assume that the GdViewer1 control has been properly integrated 'and the AnnotationMoved event has been properly added. 'Define the event. Sub GdViewer1_AnnotationMoved(ByVal sender As Object, ByVal e As GdPicture14.WPF.GdViewer.AnnotationMovedEventArgs) Dim annot As GdPicture14.Annotations.Annotation = GdViewer1.GetAnnotationFromIdx(e.AnnotationIdx) MessageBox.Show("The annotation with the index " + e.AnnotationIdx.ToString() + " has been moved.", "GdViewer.AnnotationMoved") End Sub
//We assume that the GdViewer1 control has been properly integrated //and the AnnotationMoved event has been properly added. //Define the event. void GdViewer1_AnnotationMoved(object sender, GdPicture14.WPF.GdViewer.AnnotationMovedEventArgs e) { GdPicture14.Annotations.Annotation annot = GdViewer1.GetAnnotationFromIdx(e.AnnotationIdx); MessageBox.Show("The annotation with the index " + e.AnnotationIdx.ToString() + " has been moved.", "GdViewer.AnnotationMoved"); }
See Also