TableColumnCollection.Insert(Int32, TableColumn) Method

Definition

Inserts a specified item in the collection at a specified index position.

C#
public void Insert(int index, System.Windows.Documents.TableColumn item);

Parameters

index
Int32

A zero-based index that specifies the position in the collection at which to insert item.

item
TableColumn

An item to insert into the collection.

Implements

Exceptions

Raised when index is less than 0.

Raised when item is null.

Remarks

If Count equals Capacity for this collection, the collection capacity automatically is increased before the new item is inserted. Set index equal to the value of Count, to append a new collection item to the collection.

Indices for existing collection items may be adjusted to accommodate the newly inserted collection item.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10