System.Windows.Forms.ListView.ColumnHeaderCollection.Insert C# (CSharp) Method

Insert() public method

public Insert ( int index, ColumnHeader value ) : void
index int
value ColumnHeader
return void
			public void Insert (int index, ColumnHeader value)
			{
				// LAMESPEC: MSDOCS say greater than or equal to the value of the Count property
				// but it's really only greater.
				if (index < 0 || index > list.Count)
					throw new ArgumentOutOfRangeException ("index");

				list.Insert (index, value);
				owner.AddColumn (value, index, true);

				//UIA Framework event: Item added
				OnUIACollectionChangedEvent (new CollectionChangeEventArgs (CollectionChangeAction.Add, value));
			}

Same methods

ListView.ColumnHeaderCollection::Insert ( int index, string text ) : void
ListView.ColumnHeaderCollection::Insert ( int index, string text, int width ) : void
ListView.ColumnHeaderCollection::Insert ( int index, string text, int width, HorizontalAlignment textAlign ) : void
ListView.ColumnHeaderCollection::Insert ( int index, string key, string text ) : void
ListView.ColumnHeaderCollection::Insert ( int index, string key, string text, int width ) : void
ListView.ColumnHeaderCollection::Insert ( int index, string key, string text, int width, HorizontalAlignment textAlign, int imageIndex ) : void
ListView.ColumnHeaderCollection::Insert ( int index, string key, string text, int width, HorizontalAlignment textAlign, string imageKey ) : void