ObjectAddedEventArgs Class |
The ObjectAddedEventArgs class is used to pass argument information for a PDF object related event raised by the PdfWebControlApi Class.
This class can only be created internally. It can not be declared or accessed without being instanced.
This type exposes the following members.
//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);