Example #1
0
 private void ColumnRemovedEvent(FixedColumnHeader col)
 {
     if (this.ColumnRemoved != null)
     {
         this.ColumnRemoved.Invoke(this, new ColumnsChangedEventArgs(col));
     }
 }
Example #2
0
 //-----------------------------------------------------------------------
 // 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);
 }
Example #3
0
            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);
            }
Example #4
0
 //-----------------------------------------------------------------------
 // Class Constructors
 //
 public ColumnsChangedEventArgs(FixedColumnHeader column)
 {
     this._ch = column;
 }
Example #5
0
 public bool Contains(FixedColumnHeader value)
 {
     return(InnerList.Contains(value));
 }
Example #6
0
 public int IndexOf(FixedColumnHeader value)
 {
     return(InnerList.IndexOf(value));
 }
Example #7
0
 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));
 }
 //-----------------------------------------------------------------------
 // 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);
 }
 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;
 }