Tinkr2/4.2/AphelionCore/AphelionCore/Controls/Container.cs
/// <summary>
/// Removes all children from container.
/// </summary>
/// <param name="disposeChildren">When true children are completely disposed of. Otherwise children are simply removed from the container.</param>
Removes all children from container.
Removes all children from container .
public virtual void ClearChildren(bool disposeChildren = true)
      {
         if (_children == null)
         {
            return;
         }
         for (int i = 0; i < _children.Length; i++)
         {
            if (disposeChildren)
            {
               _children[i].Dispose();
            }
            else
            {
               _children[i].Parent = null;
            }
         }
         _children = null;
         Render(true);
      }
public virtual void ClearChildren ( bool disposeChildren = true ) { if ( _children == null ) { return ; } for ( int i = 0 ; i < _children . Length ; i ++ ) { if ( disposeChildren ) { _children [ i ] . Dispose ( ) ; } else { _children [ i ] . Parent = null ; } } _children = null ; Render ( true ) ; }
Removes all children from container.
Removes all children from container .
disposeChildren
bool
When true children are completely disposed of. Otherwise children are simply removed from the container.
When true children are completely disposed of . Otherwise children are simply removed from the container .