System.Windows.Forms.CommandBarItemCollection.Remove C# (CSharp) Method

Remove() public method

public Remove ( CommandBarItem item ) : void
item CommandBarItem
return void
        public void Remove(CommandBarItem item)
        {
            if (this.items.Contains(item))
            {
                this.items.Remove(item);

                if (this.commandBar != null)
                {
                    this.commandBar.RemoveItem(item);
                }
            }
        }