Share via


PropertyValueCollection Class

Represents a collection of PropertyValue instances.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Design.PropertyEditing.PropertyValueCollection

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

Syntax

'Declaration
Public MustInherit Class PropertyValueCollection _
    Implements IEnumerable(Of PropertyValue), IEnumerable,  _
    INotifyCollectionChanged
public abstract class PropertyValueCollection : IEnumerable<PropertyValue>, 
    IEnumerable, INotifyCollectionChanged
public ref class PropertyValueCollection abstract : IEnumerable<PropertyValue^>, 
    IEnumerable, INotifyCollectionChanged
[<AbstractClass>]
type PropertyValueCollection =  
    class
        interface IEnumerable<PropertyValue>
        interface IEnumerable
        interface INotifyCollectionChanged
    end
public abstract class PropertyValueCollection implements IEnumerable<PropertyValue>, IEnumerable, INotifyCollectionChanged

The PropertyValueCollection type exposes the following members.

Constructors

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

Top

Properties

  Name Description
Public property Count When overridden in a derived class, gets the number of items in the collection.
Public property Item When overridden in a derived class, gets the PropertyValue at the specified index.
Public property ParentValue Gets the parent PropertyValue.

Top

Methods

  Name Description
Public method Add When overridden in a derived class, adds the specified object into the collection.
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 GetEnumerator When overridden in a derived class, returns a strongly typed IEnumerator for the collection of PropertyValue objects.
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.)
Public method Insert When overridden in a derived class, inserts the specified object into the collection at the specified index.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnCollectionChanged Raises the CollectionChanged event.
Public method Remove When overridden in a derived class, removes the specified PropertyValue from the collection.
Public method RemoveAt When overridden in a derived class, removes the PropertyValue from the collection at the specified index.
Public method SetIndex When overridden in a derived class, swaps the order of objects in the collection.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event CollectionChanged Occurs when the PropertyValueCollection changes.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Infrastructure. For a description of this member, see IEnumerable.GetEnumerator.

Top

Remarks

The abstract PropertyValueCollection class is used for properties whose type is a collection.

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.PropertyEditing Namespace

Other Resources

WPF Designer Extensibility

Property Editing Architecture