ZForge.Controls.XPTable.Models.ColumnCollection.Add C# (CSharp) Method

Add() public method

Adds the specified Column to the end of the collection
public Add ( Column column ) : int
column Column The Column to add
return int
        public int Add(Column column)
        {
            if (column == null)
            {
                throw new System.ArgumentNullException("Column is null");
            }

            int index = this.List.Add(column);

            this.RecalcWidthCache();

            this.OnColumnAdded(new ColumnModelEventArgs(this.owner, column, index, index));

            return index;
        }