Delegate ProcessContextMenuDelegate
- Namespace
- CADability
- Assembly
- CADability.dll
Delegate definition for ProcessContextMenuEvent, which is raised when a context menu is about to be executed.
public delegate void ProcessContextMenuDelegate(ICommandHandler target, string MenuId, ref bool Processed)
Parameters
targetICommandHandlerThe commandhandler, to which this command is targeted
MenuIdstringThe menuid of the command (see MenuResource.xml)
ProcessedboolSet to true, if you have processed this command and no further action is required, leave unmodified if CADability should process this command
Constructors
ProcessContextMenuDelegate(object, nint)
public ProcessContextMenuDelegate(object @object, nint method)
Parameters
Methods
BeginInvoke(ICommandHandler, string, ref bool, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(ICommandHandler target, string MenuId, ref bool Processed, AsyncCallback callback, object @object)
Parameters
targetICommandHandlerMenuIdstringProcessedboolcallbackAsyncCallbackobjectobject
Returns
EndInvoke(ref bool, IAsyncResult)
public virtual void EndInvoke(ref bool Processed, IAsyncResult result)
Parameters
ProcessedboolresultIAsyncResult
Invoke(ICommandHandler, string, ref bool)
public virtual void Invoke(ICommandHandler target, string MenuId, ref bool Processed)
Parameters
targetICommandHandlerMenuIdstringProcessedbool