Table of Contents

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

target ICommandHandler

The commandhandler, to which this command is targeted

MenuId string

The menuid of the command (see MenuResource.xml)

Processed bool

Set 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

object object
method nint

Methods

BeginInvoke(ICommandHandler, string, ref bool, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(ICommandHandler target, string MenuId, ref bool Processed, AsyncCallback callback, object @object)

Parameters

target ICommandHandler
MenuId string
Processed bool
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(ref bool, IAsyncResult)

public virtual void EndInvoke(ref bool Processed, IAsyncResult result)

Parameters

Processed bool
result IAsyncResult

Invoke(ICommandHandler, string, ref bool)

public virtual void Invoke(ICommandHandler target, string MenuId, ref bool Processed)

Parameters

target ICommandHandler
MenuId string
Processed bool