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
MenuIdstringId of the menu item or command
CommandStateCommandStateThe state to fill in
ProcessedboolSet to true when the handler has determined the state
Constructors
UpdateCommandDelegate(object, nint)
public UpdateCommandDelegate(object @object, nint method)
Parameters
Methods
BeginInvoke(string, CommandState, ref bool, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(string MenuId, CommandState CommandState, ref bool Processed, AsyncCallback callback, object @object)
Parameters
MenuIdstringCommandStateCommandStateProcessedboolcallbackAsyncCallbackobjectobject
Returns
EndInvoke(ref bool, IAsyncResult)
public virtual void EndInvoke(ref bool Processed, IAsyncResult result)
Parameters
ProcessedboolresultIAsyncResult
Invoke(string, CommandState, ref bool)
public virtual void Invoke(string MenuId, CommandState CommandState, ref bool Processed)
Parameters
MenuIdstringCommandStateCommandStateProcessedbool