getAnnotContent

Get the type of an annotation.
getAnnotContent([in] LONG annotHandle, [out, retval] BSTR *content)
This function returns the "content" of an annotation (whose handle was obtained with onAnnot). Only some annotation types have content; getAnnotContent will return an empty string for annotations that don't have content.
VB6:
Private Sub viewer_MouseDown2(ByVal button As Integer, ByVal shift As Integer, _ ByVal page As Long, ByVal x As Double, ByVal y As Double) 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
onAnnot
getAnnotType