Table of Contents

Delegate UpdateCommandDelegate

Namespace
CADability
Assembly
CADability.dll

Delegate for the UpdateCommandEvent, which is raised when the user interface wants to know the state (enabled, checked) of the menu item or toolbar button with the given id. A handler sets the flags in CommandState and sets Processed to true to prevent the frame from determining the state itself.

public delegate void UpdateCommandDelegate(string MenuId, CommandState CommandState, ref bool Processed)

Parameters

MenuId string

Id of the menu item or command

CommandState CommandState

The state to fill in

Processed bool

Set to true when the handler has determined the state

Constructors

UpdateCommandDelegate(object, nint)

public UpdateCommandDelegate(object @object, nint method)

Parameters

object object
method nint

Methods

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

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

Parameters

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(string, CommandState, ref bool)

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

Parameters

MenuId string
CommandState CommandState
Processed bool