PathSegmentCollection.Insert Method (Int32, PathSegment)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Inserts a PathSegment into this PathSegmentCollection at the specified index.

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

public void Insert(
	int index,
	PathSegment value
)

Parameters

index
Type: System.Int32

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

value
Type: System.Windows.Media.PathSegment

The item to insert.

Exception Condition
ArgumentException

value is null.

ArgumentOutOfRangeException

index is not a valid index in the PathSegmentCollection.

NotSupportedException

The PathSegmentCollection is read-only.

- or -

The PathSegmentCollection 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: