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
targetICommandHandlerThe commandhandler, to which this command is targeted
MenuIdstringThe menuid of the command (see MenuResource.xml)
CommandStateCommandStateYu can modify the Enabled and Checked properties of the CommandState
ProcessedboolSet to true, when you have provided "Enabled" and "Checked" properties
Constructors
UpdateContextMenuDelegate(object, nint)
public UpdateContextMenuDelegate(object @object, nint method)
Parameters
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
targetICommandHandlerMenuIdstringCommandStateCommandStateProcessedboolcallbackAsyncCallbackobjectobject
Returns
EndInvoke(ref bool, IAsyncResult)
public virtual void EndInvoke(ref bool Processed, IAsyncResult result)
Parameters
ProcessedboolresultIAsyncResult
Invoke(ICommandHandler, string, CommandState, ref bool)
public virtual void Invoke(ICommandHandler target, string MenuId, CommandState CommandState, ref bool Processed)
Parameters
targetICommandHandlerMenuIdstringCommandStateCommandStateProcessedbool