Click or drag to resize

getObjectSelected Method

Gets the object currently selected (if any).

Syntax
JavaScript
function getObjectSelected();

Parameters

None

Return Value

Type: PdfObject Class

Returns currently selected object, if any; otherwise null.

Remarks

This method will return a number less than 1 if no pages are found or a document is not open.

Examples
JavaScript
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.");
See Also
This website uses cookies to identify your session and other necessary functions. By using this website, you are agreeing to our Terms of Use and Privacy Policy (updated April 26 2021).
Learn About Cookies
Got it!