Nez.UI.Table.reset C# (CSharp) Method

reset() public method

Removes all elements and cells from the table (same as {@link #clear()}) and additionally resets all table properties and cell, column, and row defaults.
public reset ( ) : void
return void
		public void reset()
		{
			clear();
			_padTop = backgroundTop;
			_padLeft = backgroundLeft;
			_padBottom = backgroundBottom;
			_padRight = backgroundRight;
			_align = AlignInternal.center;
			_tableDebug = TableDebug.None;

			_cellDefaults.reset();

			for( int i = 0, n = _columnDefaults.Count; i < n; i++ )
			{
				var columnCell = _columnDefaults[i];
				if( columnCell != null )
					Pool<Cell>.free( columnCell );
			}
			_columnDefaults.Clear();
		}