How to determine the page content type under the mouse pointer
This example illustrates how to use the PdfViewerControl.HitTest method to determine the type of the page content under the mouse pointer.
This method returns a PdfHitTestResult instance with information about the page content type (text, an image or annotation). You can get the page content type using the ContentType property and the page content selection status using the IsSelected property.
In this example, the retrieved information is shown on the Content Type ribbon page group.
Call the PdfViewerControl.HitTest method in the PdfViewerControl.MouseMove event handler to perform hit testing.