TextEffectCollection.Add(TextEffect) 方法

定义

向集合的末尾添加一个 TextEffectAdds a TextEffect to the end of the collection.

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

参数

value
TextEffect

要添加到集合中的 TextEffectThe TextEffect to add to the collection.

实现

注解

由于TextEffect对象是从Freezable派生的, 因此在使用对象时将复制它们。Because TextEffect objects derive from Freezable, they are copied when they are used. 因此, 稍后可能无法使用原始TextEffect TextEffect对象检索或删除添加到集合中的。Therefore, later, you might not be able to retrieve or remove the TextEffect you added to the collection using the original TextEffect object. 集合TextEffect中的是原始TextEffect副本的副本, 被视为不同TextEffect于你添加的副本。The TextEffect in the collection is a copy of the original TextEffect and is considered a different TextEffect than the one you added.

适用于