Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.6.28
|
Leadtools Namespace > RasterCollection<T> Class : DisableEvents Method |
public void DisableEvents()
'Declaration
Public Sub DisableEvents()
'Usage
Dim instance As RasterCollection(Of T) instance.DisableEvents()
public void DisableEvents()
function Leadtools.RasterCollection.DisableEvents()
public: void DisableEvents();
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`1.
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.