LEADTOOLS (Leadtools assembly)
LEAD Technologies, Inc

DisableEvents Method (RasterImage)






Disables raising the Changed event. .NET support Silverlight support WinRT support
Syntax
public void DisableEvents()
'Declaration
 
Public Sub DisableEvents() 
'Usage
 
Dim instance As RasterImage
 
instance.DisableEvents()
public void DisableEvents()
 function Leadtools.RasterImage.DisableEvents()
public:
void DisableEvents(); 
Remarks

Calling DisableEvents will increment an internal counter. When the internal counter is 0, the Changed events will be raised for changes to the RasterImage.

When the internal counter is != 0, Changed will not be raised. Therefore, for each call to DisableEvents, there should be a corresponding call to EnableEvents in order to restore the raising of events.

You can temporary disable the Changed event when performing multiple operations on a RasterImage object then re-enabling it once the operations are done. This way, any listeners to the Changed event will be notified only once thus optimizing the performance.

Example
For an example, refer to Changed.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterImage Class
RasterImage Members

 

 


Products | Support | Contact Us | Copyright Notices

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