LEADTOOLS JavaScript (Leadtools.Controls)
LEAD Technologies, Inc

PropertyChanged Event

Example 

Occurs when a property value in this ImageViewerchanges.
Syntax
add_propertyChanged(function(sender, e))
remove_propertyChanged(function(sender, e))

!MISSING Scrap '_RTJavaScript_Event_SYNTAX'!
Remarks

Most of the properties of this ImageViewer will fire the PropertyChanged event when the value changes. When this happens, the value of PropertyChangedEventArgs.PropertyName of the event data will be set to the name of the property that was changed. For example, the PropertyChangedEventArgs.PropertyName will be set to "ScaleFactor" when ScaleFactor changes and "ScrollOffset" when ScrollOffset changes.

Example

Start with the ImageViewer example, remove all the code inside the example function (search for the // TODO: add example code here comment) and insert the following code:

Open the HTML page in your browser, now as after you click the Example button and whenever you pan or zoom the image, the values are displayed in the label.

Event Data
Parameter Type Description
sender 'var' The source of the event.
e PropertyChangedEventArgs The event data.
See Also

Reference

ImageViewer Object
ImageViewer Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.