ComponentFactory.Krypton.Docking.DockingElementClosedCollection.InternalRemove C# (CSharp) Method

InternalRemove() protected method

Removes first occurance of specified docking element.
protected InternalRemove ( IDockingElement item ) : bool
item IDockingElement IDockingElement reference.
return bool
        protected virtual bool InternalRemove(IDockingElement item)
        {
            // Try and remove before removing the parent relationship, so if the
            // remove fails the parent relationship will still be correctly in place.
            if (_elements.Remove(item))
            {
                item.Parent = null;
                return true;
            }
            else
                return false;
        }