ModelItemCollection 类

更新:2007 年 11 月

实现对 ModelItem 对象集合的支持。

命名空间:  Microsoft.Windows.Design.Model
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)

语法

声明
Public MustInherit Class ModelItemCollection _
    Inherits ModelItem _
    Implements IList(Of ModelItem), ICollection(Of ModelItem),  _
    IEnumerable(Of ModelItem), IList, ICollection, IEnumerable,  _
    INotifyCollectionChanged
用法
Dim instance As ModelItemCollection
public abstract class ModelItemCollection : ModelItem, 
    IList<ModelItem>, ICollection<ModelItem>, IEnumerable<ModelItem>, 
    IList, ICollection, IEnumerable, INotifyCollectionChanged
public ref class ModelItemCollection abstract : public ModelItem, 
    IList<ModelItem^>, ICollection<ModelItem^>, IEnumerable<ModelItem^>, 
    IList, ICollection, IEnumerable, INotifyCollectionChanged
public abstract class ModelItemCollection extends ModelItem implements IList<ModelItem>, ICollection<ModelItem>, IEnumerable<ModelItem>, IList, ICollection, IEnumerable, INotifyCollectionChanged

备注

ModelItemCollection 派生自 ModelItem,它实现对项集合的支持。ModelItemCollection 定义一个静态的附加属性名 Item。此属性随同在集合上定义的任何属性从集合的 Properties 枚举返回。Item 属性表示集合中的所有项,并定义为 ModelItem 的类型 IEnumerable。集合中的所有项都将其 Source 属性设置为此属性。此属性的元数据将其标记为不可浏览且不可序列化。Item 属性是“伪”属性,因为它实际上不是在模型上设置的。它指向的值是 ModelItemCollection 本身。

继承层次结构

System.Object
  Microsoft.Windows.Design.Model.ModelItem
    Microsoft.Windows.Design.Model.ModelItemCollection

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

另请参见

参考

ModelItemCollection 成员

Microsoft.Windows.Design.Model 命名空间

其他资源

WPF 设计器扩展性体系结构