Click or drag to resize

ObjectAddedEventArgs Class

The ObjectAddedEventArgs class is used to pass argument information for a PDF object related event raised by the PdfWebControlApi Class.

Overview

This class can only be created internally. It can not be declared or accessed without being instanced.

Members

This type exposes the following members.

ObjectAddedEventArgs Properties

Examples
The following example uses the ObjectAddedEventArgs Class to handle the "objectAdded" event of the PdfWebControlApi Class.
JavaScript
//get API class
var myApi = new PdfWebControlApi("PdfWebControl1"); // where "PdfWebControl1" is the ID (ClientID) assigned to the PdfWebControl instance

//declare event handler function (which accepts an object of type ObjectAddedEventArgs as an argument)
function objectAddedHandler(evt)
{
    //set object default properties on add
    evt.obj.setProperties( {"color" : "#ff0000"} );
}

//attach event handler to objectAdded event
myApi.addEventListener("objectAdded", objectAddedHandler);
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!