GdPicture.NET Reference Guide
AnnotationResized Event (GdViewer)
Example 





GdPicture14 Namespace > GdViewer Class : AnnotationResized Event
This event is raised right after a GdPicture/XMP annotation has been resized by a user.

Please check the corresponded GdViewer.AnnotationResizedEventHandler for given parameters.

Syntax
'Declaration
 
Public Event AnnotationResized As GdViewer.AnnotationResizedEventHandler
public event GdViewer.AnnotationResizedEventHandler AnnotationResized
public event AnnotationResized: GdViewer.AnnotationResizedEventHandler; 
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event GdViewer.AnnotationResizedEventHandler* AnnotationResized
public:
event GdViewer.AnnotationResizedEventHandler^ AnnotationResized
Remarks
Be aware, that this event only handles GdPicture/XMP annotations.
Example
How to add this event to your GdViewer control. This example shows you how to address the currently resized annotation.
'We assume that the GdViewer1 control has been properly integrated.
Friend WithEvents GdViewer1 As GdPicture14.GdViewer
 
'Add the event.
AddHandler GdViewer1.AnnotationResized, AddressOf GdViewer1_AnnotationResized
 
'Define the event.
Sub GdViewer1_AnnotationResized(ByVal AnnotationIdx As Integer) Handles GdViewer1.AnnotationResized
    Dim annot As GdPicture14.Annotations.Annotation = GdViewer1.GetAnnotationFromIdx(AnnotationIdx)
    MessageBox.Show("The annotation with the index " + AnnotationIdx.ToString() + " has been resized.", "GdViewer.AnnotationResized")
End Sub
//We assume that the GdViewer1 control has been properly integrated.
 
//Add the event.
GdViewer1.AnnotationResized += GdViewer1_AnnotationResized;
 
//Define the event.
void GdViewer1_AnnotationResized(int AnnotationIdx)
{
    GdPicture14.Annotations.Annotation annot = GdViewer1.GetAnnotationFromIdx(AnnotationIdx);
    MessageBox.Show("The annotation with the index " + AnnotationIdx.ToString() + " has been resized.", "GdViewer.AnnotationResized");
}
See Also

Reference

GdViewer Class
GdViewer Members
GdViewer.AnnotationResizedEventHandler Delegate
GetAnnotationFromIdx Method
Annotation Class