/// <summary>
 /// Initializes a new instance of the ColumnModelEventArgs class with 
 /// the specified ColumnModel source, start index, end index and affected Column
 /// </summary>
 /// <param name="source">The ColumnModel that originated the event</param>
 /// <param name="column">The affected Column</param>
 /// <param name="fromIndex">The start index of the affected Column(s)</param>
 /// <param name="toIndex">The end index of the affected Column(s)</param>
 public ColumnModelEventArgs(ColumnModel source, Column column, int fromIndex, int toIndex)
     : base()
 {
     this.source = source;
     this.column = column;
     this.fromIndex = fromIndex;
     this.toIndex = toIndex;
 }
        /// <summary>
        /// Initializes a new instance of the ColumnModel.ColumnCollection class 
        /// that belongs to the specified ColumnModel
        /// </summary>
        /// <param name="owner">A ColumnModel representing the columnModel that owns 
        /// the Column collection</param>
        public ColumnCollection(ColumnModel owner)
            : base()
        {
            if (owner == null)
            {
                throw new ArgumentNullException("owner");
            }

            this.owner = owner;
            this.totalColumnWidth = 0;
            this.visibleColumnsWidth = 0;
            this.visibleColumnCount = 0;
            this.lastVisibleColumn = -1;
        }
Esempio n. 3
0
        /// <summary>
        /// Initialise default values
        /// </summary>
        private void Init()
        {
            this.text = null;
            this.width = Column.DefaultWidth;
            this.columnState = ColumnState.Normal;
            this.alignment = ColumnAlignment.Left;
            this.image = null;
            this.imageOnRight = false;
            this.columnModel = null;
            this.x = 0;
            this.tooltipText = null;
            this.format = "";
            this.sortOrder = SortOrder.None;
            this.renderer = null;
            this.editor = null;
            this.comparer = null;

            this.state = (byte) (STATE_ENABLED | STATE_EDITABLE | STATE_VISIBLE | STATE_SELECTABLE | STATE_SORTABLE);
        }