Example #1
0
		/// <summary>
		/// Makes a copy of ColumnHeader object.
		/// </summary>
		/// <returns>Returns new instance of column header object.</returns>
		public virtual ColumnHeader Copy()
		{
			ColumnHeader c=new ColumnHeader();
			c.ColumnName=this.ColumnName;
			c.StyleMouseDown=this.StyleMouseDown;
			c.StyleMouseOver=this.StyleMouseOver;
			c.StyleNormal=this.StyleNormal;
			c.Text=this.Text;
			c.Visible=this.Visible;
			c.Width.Absolute=this.Width.Absolute;
			c.Width.Relative=this.Width.Relative;

			return c;
		}
Example #2
0
		/// <summary>
		/// Removes specified object from the collection.
		/// </summary>
		/// <param name="value"></param>
		public void Remove(ColumnHeader value) 
		{
			List.Remove(value);
		}
Example #3
0
		/// <summary>
		/// Returns whether collection contains specified object.
		/// </summary>
		/// <param name="value">Object to look for.</param>
		/// <returns>true if object is part of the collection, otherwise false.</returns>
		public bool Contains(ColumnHeader value) 
		{
			return List.Contains(value);
		}
Example #4
0
		/// <summary>
		/// Returns index of the object inside of the collection.
		/// </summary>
		/// <param name="value">Reference to the object.</param>
		/// <returns>Index of the object.</returns>
		public int IndexOf(ColumnHeader value) 
		{
			return List.IndexOf(value);
		}
Example #5
0
		/// <summary>
		/// Inserts new object into the collection.
		/// </summary>
		/// <param name="index">Position of the object.</param>
		/// <param name="value">Object to insert.</param>
		public void Insert(int index, ColumnHeader value) 
		{
			List.Insert(index, value);
		}
Example #6
0
		/// <summary>
		/// Adds new object to the collection.
		/// </summary>
		/// <param name="ch">Object to add.</param>
		/// <returns>Index of newly added object.</returns>
		public int Add(ColumnHeader ch)
		{
			return List.Add(ch);
		}
Example #7
0
		/// <summary>
		/// Copies contained items to the ColumnHeader array.
		/// </summary>
		/// <param name="array">Array to copy to.</param>
		internal void CopyTo(ColumnHeader[] array)
		{
			List.CopyTo(array,0);
		}
Example #8
0
		/// <summary>
		/// Copies collection into the specified array.
		/// </summary>
		/// <param name="array">Array to copy collection to.</param>
		/// <param name="index">Starting index.</param>
		public void CopyTo(ColumnHeader[] array, int index) 
		{
			List.CopyTo(array, index);
		}