System.Windows.Forms.ImageList.ImageCollection.RemoveByKey C# (CSharp) Method

RemoveByKey() public method

public RemoveByKey ( string key ) : void
key string
return void
            public void RemoveByKey(string key)
            {
                for (int i = 0; i < _items.Count; i++)
                {
                    if (key == _items[i].Key)
                    {
                        _items.RemoveAt(i);
                        return;
                    }
                }
            }