Beispiel #1
0
        protected int RemoveAll(Predicate <Drawable> match, bool dispose = true)
        {
            List <Drawable> toRemove = internalChildren.FindAll(match);

            for (int i = 0; i < toRemove.Count; i++)
            {
                Remove(toRemove[i]);
            }

            return(toRemove.Count);
        }
Beispiel #2
0
        public int RemoveAll(Predicate <Drawable> match, bool dispose = true)
        {
            List <Drawable> toRemove = children.FindAll(match);

            for (int i = 0; i < toRemove.Count; i++)
            {
                Remove(toRemove[i], dispose);
            }

            return(toRemove.Count);
        }