public ICommandBarCheckBox InsertCheckBox(int index, string commandName) { CommandBarCheckBox checkBox = this.CreateCheckBox(commandName); this.Insert(index, (ICommandBarItem)checkBox); return((ICommandBarCheckBox)checkBox); }
public ICommandBarCheckBox AddCheckBox(string commandName) { CommandBarCheckBox checkBox = this.CreateCheckBox(commandName); this.Add((ICommandBarItem)checkBox); return((ICommandBarCheckBox)checkBox); }
private CommandBarCheckBox CreateCheckBox(string commandName) { CommandBarCheckBox commandBarCheckBox = new CommandBarCheckBox(this.commandService, commandName); commandBarCheckBox.DisplayShortcut = this.displayShortcut; commandBarCheckBox.Name = commandName; return(commandBarCheckBox); }