'We assume that the GdViewer1 control has been properly integrated.
Friend WithEvents GdViewer1 As GdPicture14.GdViewer
'Add the event.
AddHandler GdViewer1.AnnotationRotated, AddressOf GdViewer1_AnnotationRotated
'Define the event.
Sub GdViewer1_AnnotationRotated(ByVal AnnotationIdx As Integer) Handles GdViewer1.AnnotationRotated
Dim annot As GdPicture14.Annotations.Annotation = GdViewer1.GetAnnotationFromIdx(AnnotationIdx)
MessageBox.Show("The annotation with the index " + AnnotationIdx.ToString() + " has been rotated by " + annot.Rotation + " degrees.", "GdViewer.AnnotationRotated")
End Sub
//We assume that the GdViewer1 control has been properly integrated.
//Add the event.
GdViewer1.AnnotationRotated += GdViewer1_AnnotationRotated;
//Define the event.
void GdViewer1_AnnotationRotated(int AnnotationIdx)
{
GdPicture14.Annotations.Annotation annot = GdViewer1.GetAnnotationFromIdx(AnnotationIdx);
MessageBox.Show("The annotation with the index " + AnnotationIdx.ToString() + " has been rotated by " + annot.Rotation + " degrees.", "GdViewer.AnnotationRotated");
}