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