Table of Contents

Delegate UpdateContextMenuDelegate

Namespace
CADability
Assembly
CADability.dll

Delegate definition for UpdateContextMenuEvent, which is raised, when a context menu is about to be displayed.

public delegate void UpdateContextMenuDelegate(ICommandHandler target, string MenuId, CommandState CommandState, ref bool Processed)

Parameters

target ICommandHandler

The commandhandler, to which this command is targeted

MenuId string

The menuid of the command (see MenuResource.xml)

CommandState CommandState

Yu can modify the Enabled and Checked properties of the CommandState

Processed bool

Set to true, when you have provided "Enabled" and "Checked" properties

Constructors

UpdateContextMenuDelegate(object, nint)

public UpdateContextMenuDelegate(object @object, nint method)

Parameters

object object
method nint

Methods

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

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

Parameters

target ICommandHandler
MenuId string
CommandState CommandState
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, CommandState, ref bool)

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

Parameters

target ICommandHandler
MenuId string
CommandState CommandState
Processed bool