Tinkr2/4.2/AphelionCore/AphelionCore/Controls/Container.cs
/// <summary>
/// Gets a child control by its name.
/// </summary>
/// <param name="name">Name of the control</param>
/// <returns>Returns the control or null if not found.</returns>
/// <remarks>
/// The name is compared case sensitive.
/// </remarks>
Gets a child control by its name.
Gets a child control by its name .
public virtual IControl GetChildByName(string name)
      {
         if (_children == null)
         {
            return null;
         }
         for (int i = 0; i < _children.Length; i++)
         {
            if (_children[i].Name == name)
            {
               return _children[i];
            }
         }
         return null;
      }
public virtual IControl GetChildByName ( string name ) { if ( _children == null ) { return null ; } for ( int i = 0 ; i < _children . Length ; i ++ ) { if ( _children [ i ] . Name == name ) { return _children [ i ] ; } } return null ; }
Gets a child control by its name.
Gets a child control by its name .
Returns the control or null if not found.
Returns the control or null if not found .
name
string
Name of the control
Name of the control
remarks
The name is compared case sensitive.
The name is compared case sensitive .