Get the type of an annotation.
getAnnotType([in] LONG annotHandle, [out, retval] BSTR *type)
This function returns the type of an annotation (whose handle was obtained with onAnnot). The type string is one of the annotation types defined in the PDF spec.
Private Sub viewer_MouseDown2(button As Integer, shift As Integer, _ page As Long, x As Double, y As Double) _ Handles viewer.MouseDown2 annot = viewer.onAnnot(page, x, y) If annot <> 0 Then annotType = viewer.getAnnotType(annot) If annotType = "Text" Then content = viewer.getAnnotContent(annot) ' ... display the popup text annotation content ... End If End If End Sub