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

Namespace: CADability
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)

Syntax

C#
public delegate void UpdateContextMenuDelegate(
	ICommandHandler target,
	string MenuId,
	CommandState CommandState,
	ref bool Processed
)
Visual Basic
Public Delegate Sub UpdateContextMenuDelegate ( _
	target As ICommandHandler, _
	MenuId As String, _
	CommandState As CommandState, _
	ByRef Processed As Boolean _
)
Visual C++
public delegate void UpdateContextMenuDelegate(
	ICommandHandler^ target, 
	String^ MenuId, 
	CommandState^ CommandState, 
	bool% Processed
)

Parameters

target
Type: CADability.UserInterface..::..ICommandHandler
The commandhandler, to which this command is targeted
MenuId
Type: System..::..String
The menuid of the command (see MenuResource.xml)
CommandState
Type: CADability.UserInterface..::..CommandState
Yu can modify the Enabled and Checked properties of the CommandState
Processed
Type: System..::..Boolean%
Set to true, when you have provided "Enabled" and "Checked" properties

See Also