Пример #1
0
 /// <inheritdoc cref="CommandItemInfoAttribute(bool, bool, WorkspaceTypes_e)"/>
 /// <param name="showInCmdTabBox">Indicates that this command should be added to command tab box in command manager (ribbon)</param>
 /// <param name="textStyle">Text display type for command in command tab box</see>.
 /// This option is applicable when 'showInCmdTabBox' is set to true</param>
 public CommandItemInfoAttribute(bool hasMenu, bool hasToolbar, WorkspaceTypes_e suppWorkspaces,
                                 bool showInCmdTabBox, RibbonTabTextDisplay_e textStyle = RibbonTabTextDisplay_e.TextBelow)
 {
     HasMenu                   = hasMenu;
     HasToolbar                = hasToolbar;
     SupportedWorkspaces       = suppWorkspaces;
     ShowInCommandTabBox       = showInCmdTabBox;
     CommandTabBoxDisplayStyle = textStyle;
 }
Пример #2
0
        private swCommandTabButtonTextDisplay_e ConvertTextDisplay(RibbonTabTextDisplay_e style)
        {
            switch (style)
            {
            case RibbonTabTextDisplay_e.NoText:
                return(swCommandTabButtonTextDisplay_e.swCommandTabButton_NoText);

            case RibbonTabTextDisplay_e.TextBelow:
                return(swCommandTabButtonTextDisplay_e.swCommandTabButton_TextBelow);

            case RibbonTabTextDisplay_e.TextHorizontal:
                return(swCommandTabButtonTextDisplay_e.swCommandTabButton_TextHorizontal);

            default:
                return(swCommandTabButtonTextDisplay_e.swCommandTabButton_TextHorizontal);
            }
        }
Пример #3
0
 internal TabCommandInfo(int commandId, RibbonTabTextDisplay_e textStyle)
 {
     CommandId = commandId;
     TextStyle = textStyle;
 }