CommandElement StructureCleanCode C# Libraries v1.2.03 API
Specifies to display a user command with an optional shortcut key, tooltip, and/or button.

Namespace: CleanCode.GeneralComponents.Support
Assembly: CleanCode.GeneralComponents (in CleanCode.GeneralComponents.dll) Version: (1.2.03)

public struct CommandElement : IDisplayElement

The shortcut key is a textual description, as in "Ctrl+F". But you are not limited to referencing keys; you may also reference buttons. By convention a button labeled "config" is listed as, for example, "Ctrl+'config'". That named button may or may not avail itself of an associated OnlineToolStripItem. See the DisplayCommandsForm overview for details of how the variations of CommandElement affect the visual rendering.

Since CleanCode 0.9.23.

See Also