private void ColumnRemovedEvent(FixedColumnHeader col) { if (this.ColumnRemoved != null) { this.ColumnRemoved.Invoke(this, new ColumnsChangedEventArgs(col)); } }
//----------------------------------------------------------------------- // Public Methods // public int Add(FixedColumnHeader value) { //value.ListView = this._owner; List.Add(value); //this._hCol.Add(value.GetColumnHeader()); ColumnAddedEvent(value); return(List.Count - 1); }
public FixedColumnHeader Add(string key, string text, int width, SizeType sizeMode, HorizontalAlignment align) { FixedColumnHeader ch = new FixedColumnHeader(); ch.Text = text; ch.Width = width; ch.SizeType = sizeMode; ch.TextAlign = align; Add(ch); return(ch); }
//----------------------------------------------------------------------- // Class Constructors // public ColumnsChangedEventArgs(FixedColumnHeader column) { this._ch = column; }
public bool Contains(FixedColumnHeader value) { return(InnerList.Contains(value)); }
public int IndexOf(FixedColumnHeader value) { return(InnerList.IndexOf(value)); }
public void Remove(FixedColumnHeader value) { List.Remove(value); //this._hCol.RemoveAt(value.Index); ColumnRemovedEvent(value); }
private void ColumnRemovedEvent(FixedColumnHeader col) { if (this.ColumnRemoved != null) this.ColumnRemoved.Invoke(this, new ColumnsChangedEventArgs(col)); }
public bool Contains(FixedColumnHeader value) { return InnerList.Contains(value); }
public int IndexOf(FixedColumnHeader value) { return InnerList.IndexOf(value); }
public FixedColumnHeader Add(string key, string text, int width, SizeType sizeMode, HorizontalAlignment align) { FixedColumnHeader ch = new FixedColumnHeader(); ch.Text = text; ch.Width = width; ch.SizeType = sizeMode; ch.TextAlign = align; Add(ch); return ch; }
//----------------------------------------------------------------------- // Public Methods // public int Add(FixedColumnHeader value) { //value.ListView = this._owner; List.Add(value); //this._hCol.Add(value.GetColumnHeader()); ColumnAddedEvent(value); return List.Count - 1; }