System.Windows.Forms.Control.ControlCollection.Find C# (CSharp) Method

Find() public method

public Find ( string key, bool searchAllChildren ) : Control[]
key string
searchAllChildren bool
return Control[]
			public Control[] Find (string key, bool searchAllChildren)
			{
				if (string.IsNullOrEmpty (key))
					throw new ArgumentNullException ("key");
				
				ArrayList al = new ArrayList ();
				
				foreach (Control c in list)
				{
					if (c.Name.Equals (key, StringComparison.CurrentCultureIgnoreCase))
						al.Add (c);
					
					if (searchAllChildren)
						al.AddRange (c.Controls.Find (key, true));
				}
				
				return (Control[])al.ToArray (typeof(Control));
			}
			public int GetChildIndex (Control child)