BehaviorCollection
BehaviorCollection class
表示行为效果的集合。
public class BehaviorCollection : IBehaviorCollection
Properties
| Name | Description |
|---|
| Count { get; } | 返回集合中行为的数量。只读 Int32。 |
| IsReadOnly { get; } | 获取一个值,指示 ICollection 是否为只读。只读 Boolean。 |
| Item { get; set; } | 返回指定索引处的行为。 |
Methods
| Name | Description |
|---|
| Add(IBehavior) | 向集合中添加新行为。 |
| Clear() | 从集合中移除所有行为。 |
| Contains(IBehavior) | 确定 ICollection 是否包含特定值。 |
| CopyTo(IBehavior[], int) | 从特定数组索引开始,将 ICollection 的元素复制到数组中。 |
| GetEnumerator() | 返回一个枚举数,用于迭代集合。 |
| IndexOf(IBehavior) | 确定 IList 中特定项的索引。 |
| Insert(int, IBehavior) | 在指定索引处向集合中插入新行为。 |
| Remove(IBehavior) | 从集合中移除指定的行为。 |
| RemoveAt(int) | 在指定索引处从集合中移除行为。 |
See Also