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

getColumnDefaults() public method

Gets the cell values that will be used as the defaults for all cells in the specified column. Columns are indexed starting at 0
public getColumnDefaults ( int column ) : Cell
column int Column.
return Cell
		public Cell getColumnDefaults( int column )
		{
			var cell = _columnDefaults.Count > column ? _columnDefaults[column] : null;
			if( cell == null )
			{
				cell = obtainCell();
				cell.clear();
				if( column >= _columnDefaults.Count )
				{
					for( int i = _columnDefaults.Count; i < column; i++ )
						_columnDefaults.Add( null );
					_columnDefaults.Add( cell );
				}
				else
				{
					_columnDefaults[column] = cell;
				}
			}
			return cell;
		}