IBehaviorCollection

IBehaviorCollection 接口

表示行为效果的集合。

public interface IBehaviorCollection : IEnumerable<IBehavior>  

属性

名称描述
AsIEnumerable { get; }返回 IEnumerable 接口。只读 IEnumerable。
Count { get; }返回集合中行为的数量。只读 Int32。
Item { get; set; }返回指定索引处的行为。

方法

名称描述
Add(IBehavior)向集合添加新行为。
Clear()从集合中删除所有行为。
Contains(IBehavior)确定 ICollection 是否包含特定值。
IndexOf(IBehavior)确定 IList 中特定项的索引。
Insert(int, IBehavior)在指定索引处将新行为插入集合中。
Remove(IBehavior)从集合中移除指定行为。
RemoveAt(int)在指定索引处从集合中移除行为。

另请参见