System.Windows.Forms.Control.ControlCollection.GetChildIndex C# (CSharp) Méthode

GetChildIndex() public méthode

public GetChildIndex ( Control child, bool throwException ) : int
child Control
throwException bool
Résultat int
			public virtual int GetChildIndex (Control child, bool throwException)
			{
				int index;
				
				index = list.IndexOf (child);
				
				if (index == -1 && throwException)
				{
					throw new ArgumentException ("Not a child control", "child");
				}
				return index;
			}

Same methods

Control.ControlCollection::GetChildIndex ( Control child ) : int