| SwAddInExAddCommandGroupTCmdEnum Method |
Add command group based on the defined commands enumerator
Namespace:
CodeStack.SwEx.AddIn
Assembly:
CodeStack.SwEx.AddIn (in CodeStack.SwEx.AddIn.dll) Version: 0.8.1.0 (0.8.1.0)
Syntax public CommandGroup AddCommandGroup<TCmdEnum>(
Action<TCmdEnum> callback,
EnableMethodDelegate<TCmdEnum> enable = null
)
where TCmdEnum : IComparable, IFormattable, IConvertible
Public Function AddCommandGroup(Of TCmdEnum As {IComparable, IFormattable, IConvertible}) (
callback As Action(Of TCmdEnum),
Optional enable As EnableMethodDelegate(Of TCmdEnum) = Nothing
) As CommandGroup
public:
generic<typename TCmdEnum>
where TCmdEnum : IComparable, IFormattable, IConvertible
virtual CommandGroup^ AddCommandGroup(
Action<TCmdEnum>^ callback,
EnableMethodDelegate<TCmdEnum>^ enable = nullptr
) sealed
Parameters
- callback
- Type: SystemActionTCmdEnum
Callback function for the commands - enable (Optional)
- Type: CodeStack.SwEx.AddIn.DelegatesEnableMethodDelegateTCmdEnum
Optional enable method for the commands.
If this method is not used than command will be enabled according to the workspace
defined in the SupportedWorkspaces for this command
Type Parameters
- TCmdEnum
- Enumerator with commands
Return Value
Type:
CommandGroupNewly created command group
Implements
ISwAddInExAddCommandGroupTCmdEnum(ActionTCmdEnum, EnableMethodDelegateTCmdEnum)Exceptions See Also