ModelItemCollection Class
Implements support for a collection of ModelItem objects.
System.Object
Microsoft.Windows.Design.Model.ModelItem
Microsoft.Windows.Design.Model.ModelItemCollection
Namespace: Microsoft.Windows.Design.Model
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
'Declaration
Public MustInherit Class ModelItemCollection _
Inherits ModelItem _
Implements IList(Of ModelItem), ICollection(Of ModelItem), _
IEnumerable(Of ModelItem), IList, ICollection, IEnumerable, _
INotifyCollectionChanged
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
[<AbstractClass>]
type ModelItemCollection =
class
inherit ModelItem
interface IList<ModelItem>
interface ICollection<ModelItem>
interface IEnumerable<ModelItem>
interface IList
interface ICollection
interface IEnumerable
interface INotifyCollectionChanged
end
public abstract class ModelItemCollection extends ModelItem implements IList<ModelItem>, ICollection<ModelItem>, IEnumerable<ModelItem>, IList, ICollection, IEnumerable, INotifyCollectionChanged
The ModelItemCollection type exposes the following members.
Name | Description | |
---|---|---|
ModelItemCollection | Initializes a new instance of the ModelItemCollection class. |
Top
Name | Description | |
---|---|---|
Content | When overridden in a derived class, gets a ModelProperty representing the item's ContentPropertyAttribute. (Inherited from ModelItem.) | |
Context | Gets an object that contains contextual information about the designer this ModelItem was created for. (Inherited from ModelItem.) | |
Count | When overridden in a derived class, gets the count of items in the collection. | |
Events | When overridden in a derived class, gets the public events on this object. (Inherited from ModelItem.) | |
IsFixedSize | When overridden in a derived class, gets a value indicating whether the collection is a fixed size. | |
IsReadOnly | When overridden in a derived class, gets a value indicating whether the collection can be modified. | |
IsSynchronized | When overridden in a derived class, gets a value indicating whether the collection is synchronized. | |
Item | When overridden in a derived class, gets or sets the item at the specified index. This is a dependency property. | |
ItemType | When overridden in a derived class, gets the type of object the item represents. (Inherited from ModelItem.) | |
Name | When overridden in a derived class, gets or sets the name or ID of the item. (Inherited from ModelItem.) | |
Parent | When overridden in a derived class, gets the item that is the parent of this item. (Inherited from ModelItem.) | |
Properties | When overridden in a derived class, gets the public properties on this object. (Inherited from ModelItem.) | |
Root | When overridden in a derived class, gets the item that is the root of this tree. (Inherited from ModelItem.) | |
Source | When overridden in a derived class, gets the property that provided this value. (Inherited from ModelItem.) | |
SyncRoot | When overridden in a derived class, gets an object that can be used to synchronize this collection. | |
View | When overridden in a derived class, gets the visual or visual3D representing the UI for this item. (Inherited from ModelItem.) |
Top
Name | Description | |
---|---|---|
Add(Object) | When overridden in a derived class, adds the specified object to the collection. | |
Add(ModelItem) | When overridden in a derived class, adds the specified item to the collection. | |
BeginEdit() | When overridden in a derived class, this method is called when performing multiple operations on an object or group of objects. (Inherited from ModelItem.) | |
BeginEdit(String) | When overridden in a derived class, this method is called when performing multiple operations on an object or group of objects. (Inherited from ModelItem.) | |
Clear | When overridden in a derived class, clears the contents of the collection. | |
Contains(Object) | When overridden in a derived class, returns a value indicating whether the collection contains the specified value. | |
Contains(ModelItem) | When overridden in a derived class, returns a value indicating whether the collection contains the specified item. | |
CopyTo | When overridden in a derived class, copies the contents of the collection into the specified array. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetAttributes(Type) | Gets the attributes of the requested type that are declared on this item. (Inherited from ModelItem.) | |
GetAttributes(TypeIdentifier) | Gets the attributes of the requested type that are declared on this item. (Inherited from ModelItem.) | |
GetCurrentValue | When overridden in a derived class, returns the current value of the underlying model object the ModelItem is wrapping. (Inherited from ModelItem.) | |
GetEnumerator | When overridden in a derived class, returns an enumerator for the items in the collection. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IndexOf | When overridden in a derived class, returns the index of the specified item. | |
Insert(Int32, ModelItem) | When overridden in a derived class, inserts an item at the specified location. | |
Insert(Int32, Object) | When overridden in a derived class, inserts an item at the specified location. | |
IsItemOfType(Type) | Gets a value that indicates whether this item is of the specified type or implements the specified interface. (Inherited from ModelItem.) | |
IsItemOfType(TypeIdentifier) | Gets a value that indicates whether this item is of the specified type or implements the specified interface. (Inherited from ModelItem.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Move | When overridden in a derived class, moves an item to a new index. | |
Remove(Object) | When overridden in a derived class, removes a value from the collection. | |
Remove(ModelItem) | When overridden in a derived class, removes an item from the collection. | |
RemoveAt | When overridden in a derived class, removes an item at the specified index. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Name | Description | |
---|---|---|
CollectionChanged | When overridden in a derived class, occurs when the contents of this collection is changed. | |
PropertyChanged | When overridden in a derived class, occurs when a property on the model changes. (Inherited from ModelItem.) |
Top
Name | Description | |
---|---|---|
ItemProperty | Identifies the Item dependency property. |
Top
Name | Description | |
---|---|---|
IList.Add | For a description of this member, see IList.Add. | |
IList.Clear | For a description of this member, see IList.Clear. | |
IList.Contains | For a description of this member, see IList.Contains. | |
ICollection.CopyTo | For a description of this member, see ICollection.CopyTo. | |
ICollection.Count | For a description of this member, see ICollection.Count. | |
IEnumerable.GetEnumerator | For a description of this member, see IEnumerable.GetEnumerator. | |
IList.IndexOf | For a description of this member, see IList.IndexOf. | |
IList.Insert | For a description of this member, see IList.Insert. | |
IList.IsFixedSize | For a description of this member, see IList.IsFixedSize. | |
IList.IsReadOnly | For a description of this member, see IList.IsReadOnly. | |
ICollection.IsSynchronized | For a description of this member, see ICollection.IsSynchronized. | |
IList.Item | For a description of this member, see IList.Item. | |
IList.Remove | For a description of this member, see IList.Remove. | |
IList.RemoveAt | For a description of this member, see IList.RemoveAt. | |
ICollection.SyncRoot | For a description of this member, see ICollection.SyncRoot. |
Top
ModelItemCollection derives from ModelItem and implements support for a collection of items. ModelItemCollection defines a static attached property name Item. This property is returned from the Properties enumeration of the collection, in addition to any properties defined on the collection. The Item property represents all the items in the collection and is defined as type IEnumerable of ModelItem. All items in the collection have their Source property set to this property. The property’s metadata marks it non-browsable and non-serializable. The Item property is a "pseudo" property because it is not actually set on the model. The value it points to is the ModelItemCollection itself.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.