Click or drag to resize

DIMcDyeEventsBeforeRemove Method

Event fired before an dye is destroyed by McDyes.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 ( 
	Dye As McDye,
	<OutAttribute> ByRef bCancel As Boolean
)

Parameters

Dye
Type: MediaCy.IQL.Microscopy.InfoMcDye
The McDye being removed from the collection, or NULL if all dyes 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