DoubleCollection::Insert Method (Int32, Double)

 

Inserts a Double into this DoubleCollection at the specified index.

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

public:
virtual void Insert(
	int index,
	double value
) sealed

Parameters

index
Type: System::Int32

The index at which to insert value, the specified Double.

value
Type: System::Double

The item to insert.

Exception Condition
ArgumentException

value is null.

ArgumentOutOfRangeException

index is not a valid index in the DoubleCollection.

NotSupportedException

The DoubleCollection is read-only.

- or -

The DoubleCollection has a fixed size.

Unlike typical implementations of IList<T>::Insert, this implementation throws an ArgumentException if you attempt to insert a null (Nothing) reference.

.NET Framework
Available since 3.0
Return to top
Show: