Click or drag to resize

EnableMethodDelegateTCmdEnum Delegate

Method handler to provide the custom enable command behavior

Namespace:  CodeStack.SwEx.AddIn.Delegates
Assembly:  CodeStack.SwEx.AddIn (in CodeStack.SwEx.AddIn.dll) Version: 0.8.1.0 (0.8.1.0)
Syntax
public delegate void EnableMethodDelegate<TCmdEnum>(
	TCmdEnum cmd,
	ref CommandItemEnableState_e state
)
where TCmdEnum : IComparable, IFormattable, IConvertible

Parameters

cmd
Type: TCmdEnum
Command id
state
Type: CodeStack.SwEx.AddIn.EnumsCommandItemEnableState_e
State of the command

Type Parameters

TCmdEnum
Command defined in the enumerator
Remarks
State passed to this method is already assigned based on the value of SupportedWorkspaces options, However this method allows to reset the state based on custom logic (e.g. disable if no elements selected in the graphics view)
See Also