DIMcLensEvents_BeforeAddEventHandler Delegate

Event fired before a new lens is created by McLenses.Add.

Namespace:  MediaCy.IQL.Microscopy.Info
Assembly:  MediaCy.IQL.Microscopy.Info (in MediaCy.IQL.Microscopy.Info.dll) Version: 10.0.6912.0
Syntax
VB
Public Delegate Sub DIMcLensEvents_BeforeAddEventHandler ( 
	Name As String,
	<OutAttribute> ByRef pNewLens As McLens,
	<OutAttribute> ByRef bCancel As Boolean
)

Parameters

Name
Type: SystemString
Name of the new lens.
pNewLens
Type: MediaCy.IQL.Microscopy.InfoMcLens
Not used unless bCancel is set True, in which case this is the return value from the McLenses.Add method.
bCancel
Type: SystemBoolean
If assigned True by the event handler, then the Lens returned by the event handler is used as the return value for the McLenses.Add method.
Remarks
This event could be used to display a "New Lens" dialog. This event is NOT fired when a lens is created using the AddCopyOf method. Note that completion of the Add or AddCopyOf operation results in a PropertyChanged event on the collection's Count property.
See Also