GradientStopCollection.Item[Int32] Propriedade

Definição

Obtém ou define o GradientStop índice baseado em 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 a ser obtido ou definido.

Valor da propriedade

No GradientStop índice especificado.

Implementações

Exceções

value é null.

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

O GradientStopCollection é somente leitura.

- ou -

O GradientStopCollection tem um tamanho fixo.

Comentários

Ao contrário das implementações típicas de IList<T>.Item[], essa implementação gerará uma ArgumentException referência se você tentar inserir uma referência nula (Nothing).

Aplica-se a