text Property |
Gets the text selected by the user.
this.text;
Type: String
The text selected at the time that the "textSelected" event is raised.This property is read-only and should not be set to.
//declare event handler function (which accepts an object of type TextSelectedEventArgs as an argument) function textSelectedHandler(evt) { //show current text selection information window.alert("Text Selected: " + evt.text); } //get API class var myApi = new PdfWebControlApi("PdfWebControl1"); // where "PdfWebControl1" is the ID (ClientID) assigned to the PdfWebControl instance //attach event handler to objectAdded event myApi.addEventListener("textSelected", textSelectedHandler);