/// <summary> /// Initialise default values /// </summary> private void Init() { this.key = ""; this.dataMember = ""; this.dictionary = null; this.caption = ""; this.width = I3Column.DefaultWidth_Const; this.columnState = I3ColumnState.Normal; this.headerAlignment = I3ColumnAlignment.Center; this.cellAlignment = I3ColumnAlignment.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.isSelected = false; this.cellTextAutoWarp = false; this.state = (byte)(STATE_ENABLED_Const | STATE_EDITABLE_Const | STATE_VISIBLE_Const | STATE_SELECTABLE_Const | STATE_SORTABLE_Const); }
/// <summary> /// Initializes a new instance of the CellEventArgs class with /// the specified Cell source, column index and row index /// </summary> /// <param name="source">The Cell that Raised the event</param> /// <param name="editor">The CellEditor used to edit the Cell</param> /// <param name="table">The Table that the Cell belongs to</param> /// <param name="row">The Column index of the Cell</param> /// <param name="column">The Row index of the Cell</param> /// <param name="cellRect"></param> public I3CellEditEventArgs(I3Cell source, II3CellEditor editor, I3Table table, int row, int column, Rectangle cellRect) : base(source, column, row) { this.editor = editor; this.table = table; this.cellRect = cellRect; this.cancel = false; }
/// <summary> /// Associates the specified ICellRenderer with the specified name /// </summary> /// <param name="name">The name to be associated with the specified ICellEditor</param> /// <param name="editor">The ICellEditor to be added to the ColumnModel</param> public void SetCellEditor(string name, II3CellEditor editor) { if (name == null || name.Length == 0 || editor == null) { return; } name = name.ToUpper(); if (this.cellEditors.ContainsKey(name)) { this.cellEditors.Remove(name); this.cellEditors[name] = editor; } else { this.cellEditors.Add(name, editor); } }
/// <summary> /// Initializes a new instance of the CellEventArgs class with /// the specified Cell source, column index and row index /// </summary> /// <param name="source">The Cell that Raised the event</param> /// <param name="editor">The CellEditor used to edit the Cell</param> /// <param name="table">The Table that the Cell belongs to</param> public I3CellEditEventArgs(I3Cell source, II3CellEditor editor, I3Table table) : this(source, editor, table, -1, -1, Rectangle.Empty) { }