Share via


ModelEventCollection Class

Represents an enumeration of events.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Design.Model.ModelMemberCollection<ModelEvent, EventIdentifier>
    Microsoft.Windows.Design.Model.ModelEventCollection

Namespace:  Microsoft.Windows.Design.Model
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public MustInherit Class ModelEventCollection _
    Inherits ModelMemberCollection(Of ModelEvent, EventIdentifier)
public abstract class ModelEventCollection : ModelMemberCollection<ModelEvent, EventIdentifier>
public ref class ModelEventCollection abstract : public ModelMemberCollection<ModelEvent^, EventIdentifier>
[<AbstractClass>]
type ModelEventCollection =  
    class
        inherit ModelMemberCollection<ModelEvent, EventIdentifier>
    end
public abstract class ModelEventCollection extends ModelMemberCollection<ModelEvent, EventIdentifier>

The ModelEventCollection type exposes the following members.

Constructors

  Name Description
Protected method ModelEventCollection Initializes a new instance of the ModelEventCollection class.

Top

Properties

  Name Description
Public property Item[String] Searches the collection for an item with the specified key and returns it if it is found. (Inherited from ModelMemberCollection<TItemType, TKeyType>.)
Public property Item[TKeyType] Searches the collection for an item with the specified key and returns it if it is found. (Inherited from ModelMemberCollection<TItemType, TKeyType>.)

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Find(String) Searches the collection for an item with the specified key and returns it if it is found. (Inherited from ModelMemberCollection<TItemType, TKeyType>.)
Public method Find(TKeyType) Searches the collection for an item with the specified key and returns it if it is found. (Inherited from ModelMemberCollection<TItemType, TKeyType>.)
Protected method Find(String, Boolean) When overridden in a derived class, searches the collection for an item with the specified key and returns it if it is found. (Inherited from ModelMemberCollection<TItemType, TKeyType>.)
Protected method Find(TKeyType, Boolean) When overridden in a derived class, searches the collection for an item with the specified key and returns it if it is found. (Inherited from ModelMemberCollection<TItemType, TKeyType>.)
Public method GetEnumerator When overridden in a derived class, returns an enumerator to enumerate items. (Inherited from ModelMemberCollection<TItemType, TKeyType>.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Infrastructure. For a description of this member, see IEnumerable.GetEnumerator. (Inherited from ModelMemberCollection<TItemType, TKeyType>.)

Top

Remarks

The ModelEventCollection class defines an enumerator and a variety of search mechanisms.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Windows.Design.Model Namespace

Other Resources

WPF Designer Extensibility