GradientStopCollection.Item[Int32] Propiedad

Definición

Obtiene o establece el objeto GradientStop en el índice de base cero especificado.

public:
 property System::Windows::Media::GradientStop ^ default[int] { System::Windows::Media::GradientStop ^ get(int index); void set(int index, System::Windows::Media::GradientStop ^ value); };
public System.Windows.Media.GradientStop this[int index] { get; set; }
member this.Item(int) : System.Windows.Media.GradientStop with get, set
Default Public Property Item(index As Integer) As GradientStop

Parámetros

index
Int32

Índice de base cero del objeto GradientStop que se va a obtener o establecer.

Valor de propiedad

en GradientStop el índice especificado.

Implementaciones

Excepciones

value es null.

indexno es un índice válido en .GradientStopCollection

es GradientStopCollection de solo lectura.

O bien

GradientStopCollection tiene un tamaño fijo.

Comentarios

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

Se aplica a