VectorCollection.Add(Vector) 方法

定义

Vector 添加到 VectorCollection 的末尾。Adds a Vector to the end of the VectorCollection.

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

参数

value
Vector

要添加到 Vector 的末尾的 VectorCollectionThe Vector to add to the end of the VectorCollection.

实现

异常

valuenullvalue is null.

VectorCollection 为只读。The VectorCollection is read-only.

- 或 --or- VectorCollection 具有固定的大小。The VectorCollection has a fixed size.

注解

与的ICollection<T>.Add典型实现不同, ArgumentException如果尝试添加null (Nothing) 引用, 此实现将引发。Unlike typical implementations of ICollection<T>.Add, this implementation throws an ArgumentException if you attempt to add a null (Nothing) reference.

适用于

另请参阅