ImageEn, unit iexUserInteractions

TIEPdfViewer.SelectedObject

TIEPdfViewer.SelectedObject


Declaration

property SelectedObject: Integer;


Description

Specify the PDF object that is selected on the current page, or -1 to deselect all objects.
If miPdfSelectObject is specified for MouseInteractGeneral, then objects can be clicked to select them.
If AllowObjectEditing is enabled, then selected objects can be moved, sized and deleted.



The style of selection are specified by:
SelColor1
SelColor2
SetSelectionGripStyle


Demo

Demo  Demos\PDF\PDFPageObjects\PDFPageObjects.dpr


Example

// Remove the selected object from the PDF page
if ImageEnView1.PdfViewer.SelectedObject >= 0 then
  ImageEnView1.PdfViewer.Objects.RemoveObject( ImageEnView1.PdfViewer.SelectedObject );


See Also

Objects