Redigera

Dela via


DrawingCollection.Item[Int32] Property

Definition

Gets or sets the Drawing at the specified zero-based index.

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

Parameters

index
Int32

The zero-based index of the Drawing object to get or set.

Property Value

The Drawing at the specified index.

Implements

Exceptions

value is null.

index is not a valid index in the DrawingCollection.

The DrawingCollection is read-only.

-or-

The DrawingCollection has a fixed size.

Remarks

Unlike typical implementations of IList<T>.Item[], this implementation throws an ArgumentException if you attempt to insert a null (Nothing) reference.

Applies to

See also