Język

DrawingCollection.Item[Int32] Właściwość

Definicja

Pobiera lub ustawia wartość Drawing w określonym indeksie opartym na zerach.

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

Parametry

index
Int32

Indeks Drawing obiektu na podstawie zera, który ma być pobierany lub ustawiany.

Wartość właściwości

Wartość Drawing w określonym indeksie.

Implementuje

Wyjątki

Parametr value ma wartość null.

index nie jest prawidłowym indeksem w obiekcie DrawingCollection.

Element DrawingCollection jest tylko do odczytu.

— lub —

Element DrawingCollection ma stały rozmiar.

Uwagi

W przeciwieństwie do typowych implementacji IList<T>.Item[]programu ta implementacja zgłasza błąd ArgumentException w przypadku próby wstawienia odwołania o wartości null (nic).

Dotyczy

Zobacz też