Nez.Portable/UI/Containers/Table.cs
/// <summary>
/// Removes all elements and cells from the table
/// </summary>
Removes all elements and cells from the table
Removes all elements and cells from the table
public override void clearChildren()
        {
            for (int i = _cells.Count - 1; i >= 0; i--)
            {
                var cell = _cells[i];
                var element = cell.element;
                if (element != null)
                    element.remove();
                Pool<Cell>.free(cell);
            }
            _cells.Clear();
            _rows = 0;
            _columns = 0;
            if (_rowDefaults != null)
                Pool<Cell>.free(_rowDefaults);
            _rowDefaults = null;
            _implicitEndRow = false;
            base.clearChildren();
        }
public override void clearChildren ( ) { for ( int i = _cells . Count - 1 ; i >= 0 ; i -- ) { var cell = _cells [ i ] ; var element = cell . element ; if ( element != null ) element . remove ( ) ; Pool < Cell > . free ( cell ) ; } _cells . Clear ( ) ; _rows = 0 ; _columns = 0 ; if ( _rowDefaults != null ) Pool < Cell > . free ( _rowDefaults ) ; _rowDefaults = null ; _implicitEndRow = false ; base . clearChildren ( ) ; }
Removes all elements and cells from the table
Removes all elements and cells from the table