GradientStopCollection.Item[Int32] Propriedade

Definição

Obtém ou define o GradientStop no índice zero 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

O índice baseado em zero do GradientStop to get ou set.

Valor de Propriedade

O GradientStop no índice especificado.

Implementações

Exceções

value é null.

index não é um índice válido no GradientStopCollection.

É GradientStopCollection só de leitura.

-ou-

Tem GradientStopCollection um tamanho fixo.

Observações

Ao contrário das implementações típicas de IList<T>.Item[], esta implementação gera um ArgumentException se tentares inserir uma referência nula (Nada).

Aplica-se a