Tinkr2/4.2/AphelionCore/AphelionCore/Controls/Container.cs
/// <summary>
/// Returns the index associated with the child.
/// </summary>
/// <param name="child">Child to be looked up</param>
/// <returns>Returns the index of the child or -1 if not found.</returns>
Returns the index associated with the child.
Returns the index associated with the child .
public virtual int GetChildIndex(IControl child)
      {
         if (_children == null)
         {
            return -1;
         }
         for (int i = 0; i < _children.Length; i++)
         {
            if (_children[i] == child)
            {
               return i;
            }
         }
         return -1;
      }
public virtual int GetChildIndex ( IControl child ) { if ( _children == null ) { return - 1 ; } for ( int i = 0 ; i < _children . Length ; i ++ ) { if ( _children [ i ] == child ) { return i ; } } return - 1 ; }
Returns the index associated with the child.
Returns the index associated with the child .
Returns the index of the child or -1 if not found.
Returns the index of the child or - 1 if not found .
child
IControl
Child to be looked up
Child to be looked up