Editar

Partilhar via


DrawingCollection.Insert(Int32, Drawing) Method

Definition

Inserts a Drawing into this DrawingCollection at the specified index position.

public:
 virtual void Insert(int index, System::Windows::Media::Drawing ^ value);
public void Insert (int index, System.Windows.Media.Drawing value);
abstract member Insert : int * System.Windows.Media.Drawing -> unit
override this.Insert : int * System.Windows.Media.Drawing -> unit
Public Sub Insert (index As Integer, value As Drawing)

Parameters

index
Int32

The index position at which to insert value, the specified Drawing.

value
Drawing

The item to insert.

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>.Insert, this implementation throws an ArgumentException if you attempt to insert a null (Nothing) reference.

Applies to

See also