Modifica

Condividi tramite


DrawingCollection.Add(Drawing) Method

Definition

Adds a Drawing to the end of the DrawingCollection.

public:
 virtual void Add(System::Windows::Media::Drawing ^ value);
public void Add (System.Windows.Media.Drawing value);
abstract member Add : System.Windows.Media.Drawing -> unit
override this.Add : System.Windows.Media.Drawing -> unit
Public Sub Add (value As Drawing)

Parameters

value
Drawing

The item to add to the end of this collection.

Implements

Exceptions

value is null.

The DrawingCollection is read-only.

-or-

The DrawingCollection has a fixed size.

Remarks

Unlike typical implementations of ICollection<T>.Add, this implementation throws an ArgumentException if you attempt to add a null (Nothing) reference.

Applies to

See also