All annotations are available programatically. Annotations are part of pages, so you pick the page, and then the annotation. So to get the last annotation added to page 3, you would use the following code.
If you mean getting the annotation selected by the user while using PDFViewCtrl class, the exact details depends on what platform you are on. Please let me know which platform (WPF, Android, etc.) and I can advise further.
It is a little unclear to me what you mean by user selected.
In the PDFViewWPFTest sample, you can select the annotation edit tool by clicking on the arrow icon (see attached image) in the toolbar. You can then click on annotations to select them. Is this the behaviour you are interested in?
This behaviour is part of the PDFViewWPF tools, which is another sample. You can copy this sample into your own project and use it as is. Once you create a PDFViewWPF, you have to create a ToolManager from the Tools sample and pass in the PDFViewWPF. You then need some buttons like the above ones to switch between tool modes. You can simply use ToolManager.CreateTool(ToolType.e_annot_edit) and it should now be possible to select annotations.
You can also modify the tools code however you like to suit your own program.
If you need additional help or clarification, don’t hesitate to ask.