PathSegmentCollection.Insert(Int32, PathSegment) Método

Definición

Inserta un PathSegment objeto en este PathSegmentCollection en el índice especificado.

public:
 virtual void Insert(int index, System::Windows::Media::PathSegment ^ value);
public void Insert(int index, System.Windows.Media.PathSegment value);
abstract member Insert : int * System.Windows.Media.PathSegment -> unit
override this.Insert : int * System.Windows.Media.PathSegment -> unit
Public Sub Insert (index As Integer, value As PathSegment)

Parámetros

index
Int32

Índice en el que se va a insertar value, el especificado PathSegment.

value
PathSegment

Elemento que se va a insertar.

Implementaciones

Excepciones

value es null.

indexno es un índice válido en .PathSegmentCollection

es PathSegmentCollection de solo lectura.

O bien

PathSegmentCollection tiene un tamaño fijo.

Comentarios

A diferencia de las implementaciones típicas de IList<T>.Insert, esta implementación produce un ArgumentException si intenta insertar una referencia nula (Nothing).

Se aplica a

Consulte también