Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Int32Collection.Insert Method

Inserts an Int32 into a specific location within the collection.

Namespace:  System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public void Insert(
	int index,
	int value
)

Parameters

index
Type: System.Int32

The index position at which the Int32 is inserted.

value
Type: System.Int32

The Int32 to insert in the collection.

Implements

IList<T>.Insert(Int32, T)

ExceptionCondition
ArgumentOutOfRangeException

index is not a valid index in the Int32Collection.

NotSupportedException

The Int32Collection is read-only.

- or -

The Int32Collection has a fixed size.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft