次の方法で共有


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 プロパティはコレクションのすべての項目を表し、ModelItemIEnumerable 型として定義されます。コレクションのすべての項目の 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 デザイナの機能拡張アーキテクチャ