Commands added to command tab box
Commands added to command tab box

Command item can be added to tab box by setting the showInCmdTabBox parameter of CommandItemInfoAttribute to true for the specific command defined in the enumeration.

C#

public enum Commands_e
{
    [CommandItemInfo(true, true, swWorkspaceTypes_e.Assembly,
        true, swCommandTabButtonTextDisplay_e.swCommandTabButton_TextBelow)]
    Command1,
}

VB.NET

Public Enum ExportCommands_e

	<CommandItemInfo(True, True, swWorkspaceTypes_e.Assembly,
					 True, swCommandTabButtonTextDisplay_e.swCommandTabButton_TextBelow)>
	Command1

End Enum

textStyle parameter allows to specify the alignment of the hint text relative to the icon.

Text display styles in command tab box
Text display styles in command tab box
  • Icon only (without text) (swCommandTabButton_NoText)
  • Text below icon (swCommandTabButton_TextBelow)
  • Text to the right to icon, aligned horizontally (swCommandTabButton_TextHorizontal)