getObjectSelected Method |
Gets the object currently selected (if any).
function getObjectSelected();
None
Type: PdfObject Class
Returns currently selected object, if any; otherwise null.This method will return a number less than 1 if no pages are found or a document is not open.
var myApi = new PdfWebControlApi("PdfWebControl1"); // where "PdfWebControl1" is the ID (ClientID) assigned to the PdfWebControl instance window.alert("This document has " + myApi.getObjectSelected() ? "a" : "no" + " selected object.");