PointCollection::Add Method (Point)

 

Adds a Point to the end of the PointCollection.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public:
virtual void Add(
	Point value
) sealed

Parameters

value
Type: System.Windows::Point

The Point to add to the end of the PointCollection.

Exception Condition
ArgumentException

value is null.

NotSupportedException

The PointCollection is read-only.

- or -

The PointCollection has a fixed size.

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

.NET Framework
Available since 3.0
Return to top
Show: