DIMcLensEvents_BeforeRemoveEventHandler Delegate
|
|
Event fired before an lens object is destroyed by McLenses.Remove, or all
are removed by McLenses.RemoveAll.
Namespace:
MediaCy.IQL.Microscopy.Info
Assembly:
MediaCy.IQL.Microscopy.Info (in MediaCy.IQL.Microscopy.Info.dll) Version: 10.0.6912.0
SyntaxPublic Delegate Sub DIMcLensEvents_BeforeRemoveEventHandler (
Lens As McLens,
<OutAttribute> ByRef bCancel As Boolean
)
Parameters
- Lens
- Type: MediaCy.IQL.Microscopy.InfoMcLens
The McLens being removed from the collection, or NULL if all lenses are
being removed by the RemoveAll method. - bCancel
- Type: SystemBoolean
If assigned True by the event handler, then the Remove is cancelled.
RemarksThis event could be used to display an "Are you sure?" dialog.
Note that completion of the Remove or RemoveAll operation results in
a PropertyChanged event on the collection's Count property.
See Also