TransformCollection.Add(Transform) 方法

定义

Transform 添加到 TransformCollection 的末尾。Adds a Transform to the end of the TransformCollection.

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

参数

value
Transform

要添加到 Transform 的末尾的 TransformCollectionThe Transform to add to the end of the TransformCollection.

实现

例外

valuenullvalue is null.

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

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

注解

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

适用于

另请参阅