Click or drag to resize

DIMcLensEventsBeforeRemove Method

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
Syntax
VB
Sub BeforeRemove ( 
	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.
Remarks
This 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