This documentation is archived and is not being maintained.

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
public final void Insert (
	int index, 
	int value
public final function Insert (
	index : int, 
	value : int
You cannot use methods in XAML.



The index position at which the Int32 is inserted.


The Int32 to insert in the collection.

Exception typeCondition


index is not a valid index in the Int32Collection.


The Int32Collection is read-only.

- or -

The Int32Collection has a fixed size.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0