CommandCollection 类
继承层次结构
System.Object
System.Collections.ObjectModel.Collection<ICommand>
System.Collections.ObjectModel.ObservableCollection<ICommand>
Microsoft.TeamFoundation.Controls.WPF.Commands.CommandCollection
命名空间: Microsoft.TeamFoundation.Controls.WPF.Commands
程序集: Microsoft.TeamFoundation.Controls(在 Microsoft.TeamFoundation.Controls.dll 中)
语法
声明
Public Class CommandCollection _
Inherits ObservableCollection(Of ICommand)
public class CommandCollection : ObservableCollection<ICommand>
CommandCollection 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
CommandCollection |
页首
属性
名称 | 说明 | |
---|---|---|
Count | 获取 Collection<T> 中实际包含的元素数。 (继承自 Collection<ICommand>。) | |
Item | 获取或设置位于指定索引处的元素。 (继承自 Collection<ICommand>。) | |
Items | 获取 Collection<T> 周围的 IList<T> 包装。 (继承自 Collection<ICommand>。) |
页首
方法
页首
事件
名称 | 说明 | |
---|---|---|
CollectionChanged | 在添加、移除、更改或移动项或者在刷新整个列表时发生。 (继承自 ObservableCollection<ICommand>。) | |
PropertyChanged | 在更改属性值时发生。 (继承自 ObservableCollection<ICommand>。) |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
IList.Add | 将某项添加到 IList 中。 (继承自 Collection<ICommand>。) | |
IList.Contains | 确定 IList 是否包含特定值。 (继承自 Collection<ICommand>。) | |
ICollection.CopyTo | 从特定的 Array 索引处开始,将 ICollection 的元素复制到一个 Array 中。 (继承自 Collection<ICommand>。) | |
IEnumerable.GetEnumerator | 返回一个循环访问集合的枚举数。 (继承自 Collection<ICommand>。) | |
IList.IndexOf | 确定 IList 中特定项的索引。 (继承自 Collection<ICommand>。) | |
IList.Insert | 将某项插入 IList 中指定的索引处。 (继承自 Collection<ICommand>。) | |
IList.IsFixedSize | 获取一个值,该值指示 IList 是否具有固定大小。 (继承自 Collection<ICommand>。) | |
ICollection<T>.IsReadOnly | 获取一个值,该值指示 ICollection<T> 是否为只读。 (继承自 Collection<ICommand>。) | |
IList.IsReadOnly | 获取一个值,该值指示 IList 是否为只读。 (继承自 Collection<ICommand>。) | |
ICollection.IsSynchronized | 获取一个值,该值指示是否同步对 ICollection 的访问(线程安全)。 (继承自 Collection<ICommand>。) | |
IList.Item | 获取或设置位于指定索引处的元素。 (继承自 Collection<ICommand>。) | |
INotifyPropertyChanged.PropertyChanged | 在更改属性值时发生。 (继承自 ObservableCollection<ICommand>。) | |
IList.Remove | 从 IList 中移除特定对象的第一个匹配项。 (继承自 Collection<ICommand>。) | |
ICollection.SyncRoot | 获取可用于同步对 ICollection 的访问的对象。 (继承自 Collection<ICommand>。) |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。