←Select platform

DisableEvents Method (RasterCollection<T>)

Summary

Called to disable raising the ItemAdded and ItemRemoved events.

Syntax

C#
VB
C++
public void DisableEvents() 
Public Sub DisableEvents()  
public: 
void DisableEvents();  

Remarks

Calling DisableEvents will increment an internal counter. When the internal counter is 0, ItemAdded or ItemRemoved event will be raised when items are added or removed to/from this RasterCollection\<T\>.

When the internal counter is not 0, ItemAdded and ItemRemoved events 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.

Example

For an example, refer to RasterCollection\<T\>.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools Assembly
Click or drag to resize