Ejemplo n.º 1
0
        public ICommandBarCheckBox InsertCheckBox(int index, string commandName)
        {
            CommandBarCheckBox checkBox = this.CreateCheckBox(commandName);

            this.Insert(index, (ICommandBarItem)checkBox);
            return((ICommandBarCheckBox)checkBox);
        }
Ejemplo n.º 2
0
        public ICommandBarCheckBox AddCheckBox(string commandName)
        {
            CommandBarCheckBox checkBox = this.CreateCheckBox(commandName);

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

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