BehaviorCollection

BehaviorCollection 类

表示行为效果的集合。

public class BehaviorCollection : IBehaviorCollection

属性

名称描述
Count { get; }返回集合中行为的数量。只读 Int32。
IsReadOnly { get; }获取一个值,指示 ICollection 是否为只读。只读 Boolean。
Item { get; set; }返回在指定索引处的行为。

方法

名称描述
Add(IBehavior)向集合中添加新的行为。
Clear()从集合中移除所有行为。
Contains(IBehavior)确定 ICollection 是否包含特定值。
CopyTo(IBehavior[], int)将 ICollection 的元素复制到数组,从特定的数组索引开始。
GetEnumerator()返回遍历集合的枚举器。
IndexOf(IBehavior)确定 IList 中特定项的索引。
Insert(int, IBehavior)在指定索引处向集合插入新行为。
Remove(IBehavior)从集合中移除指定的行为。
RemoveAt(int)在指定索引处从集合中移除行为。

另见