DrawingCollection.Item[Int32] Vlastnost

Definice

Získá nebo nastaví hodnotu v zadaném indexu založeném Drawing na nule.

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

Nulový index objektu, který Drawing chcete získat nebo nastavit.

Hodnota vlastnosti

Drawing

V Drawing zadaném indexu.

Implementuje

Výjimky

value je null.

index není platný index v souboru DrawingCollection.

Jedná se DrawingCollection o jen pro čtení.

-nebo- Má DrawingCollection pevnou velikost.

Poznámky

Na rozdíl od typických IList<T>.Item[]implementací tato implementace vyvolá ArgumentException , pokud se pokusíte vložit odkaz null (Nothing).

Platí pro

Viz také