ImageEn, unit iexUserInteractions |
|
TIEPdfViewer.SelectedAnnotation
Declaration
property SelectedAnnotation: Integer;
Description
Specify the
PDF annotation that is selected on the current page, or -1 to deselect all annotations.
If miPdfSelectAnnotation is specified for
MouseInteractGeneral, then annotations can be clicked to select them.
If
AllowAnnotationEditing is enabled, then selected annotations can be moved, sized and deleted.
The style of selection are specified by:
◼SelColor1
◼SelColor2
◼SetSelectionGripStyle
Note: SelectedAnnotation has no effect unless annotations are visible (iepoAnnotations is included in
Options)
| Demos\PDF\PDFAnnotations\PDFAnnotations.dpr |
// Remove the selected annotation from the PDF page
if ImageEnView1.PdfViewer.SelectedAnnotation >= 0 then
ImageEnView1.PdfViewer.Annotations.RemoveAnnotation( ImageEnView1.PdfViewer.SelectedAnnotation );
See Also
◼Annotations