예제 #1
0
        public ICommandBarCheckBox InsertCheckBox(int index, string commandName)
        {
            CommandBarCheckBox checkBox = this.CreateCheckBox(commandName);

            this.Insert(index, (ICommandBarItem)checkBox);
            return((ICommandBarCheckBox)checkBox);
        }
예제 #2
0
        public ICommandBarCheckBox AddCheckBox(string commandName)
        {
            CommandBarCheckBox checkBox = this.CreateCheckBox(commandName);

            this.Add((ICommandBarItem)checkBox);
            return((ICommandBarCheckBox)checkBox);
        }
예제 #3
0
        private CommandBarCheckBox CreateCheckBox(string commandName)
        {
            CommandBarCheckBox commandBarCheckBox = new CommandBarCheckBox(this.commandService, commandName);

            commandBarCheckBox.DisplayShortcut = this.displayShortcut;
            commandBarCheckBox.Name            = commandName;
            return(commandBarCheckBox);
        }