'We assume that the GdViewer1 control has been properly integrated
'and the AnnotationAddedByUser event has been properly added.
Sub GdViewer1_AnnotationAddedByUser(ByVal AnnotationIdx As Integer) Handles GdViewer1.AnnotationAddedByUser
Dim annot As GdPicture14.Annotations.Annotation = GdViewer1.GetAnnotationFromIdx(AnnotationIdx)
If TypeOf annot Is GdPicture14.Annotations.AnnotationStickyNote OrElse
TypeOf annot Is GdPicture14.Annotations.AnnotationText Then
GdViewer1.DisplayTextEditBox(AnnotationIdx)
End If
End Sub
//We assume that the GdViewer1 control has been properly integrated.
//and the AnnotationAddedByUser event has been properly added.
void GdViewer1_AnnotationAddedByUser(int AnnotationIdx)
{
GdPicture14.Annotations.Annotation annot = GdViewer1.GetAnnotationFromIdx(AnnotationIdx);
if (annot is GdPicture14.Annotations.AnnotationStickyNote ||
annot is GdPicture14.Annotations.AnnotationText)
{
GdViewer1.DisplayTextEditBox(AnnotationIdx);
}
}