GetSelectedAnnotationImage Example VB

This example uses the GetSelectedAnnotationImage method to obtain the fully-qualified file name of the image being used in a selected image annotation.

Private Sub CmdGetAnnoImg_Click()
    'Displays a message box which shows the fully qualified
    'filename for a selected annotation image.
    Dim strAnnImg As String
    
    'The MarkSelect event could be used to determine if
    'the appropriate type of annotation mark is selected.
    strAnnImg = ImgEdit1.GetSelectedAnnotationImage
    MsgBox "The annotation image is " & strAnnImg
End Sub