FlatRedBall.Gui.CollapseItem.Contains C# (CSharp) Method

Contains() public method

Returns whether this or any children CollapseItems contain the argument object as their ReferenceObject.
public Contains ( object objectToSearchFor ) : bool
objectToSearchFor object The object to search for.
return bool
        public bool Contains(object objectToSearchFor)
		{
			if(ReferenceObject == objectToSearchFor)
				return true;
			for(int i = 0; i < mItems.Count; i++)
			{
				if(mItems[i].Contains(objectToSearchFor))
					return true;
			}
			return false;

		}