This example lets the user select an annotation group from a list and delete the group. See the example for the GetAnnotationGroup method for instructions on how to list annotation groups.
Private Sub cmdDeleteGroup_Click()
Dim strCurGroup As String
'Get the name of the group the user clicked on in the listbox
strCurGroup = AnnoGroups.List(AnnoGroups.ListIndex)
Form1.ImgEdit1.DeleteAnnotationGroup (strCurGroup)
'Need to refresh display
Form1.ImgEdit1.Refresh
End Sub