Share via


PropertyValue Class

Represents the value of a property.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Design.PropertyEditing.PropertyValue

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

Syntax

'Declaration
Public MustInherit Class PropertyValue _
    Implements INotifyPropertyChanged
public abstract class PropertyValue : INotifyPropertyChanged
public ref class PropertyValue abstract : INotifyPropertyChanged
[<AbstractClass>]
type PropertyValue =  
    class
        interface INotifyPropertyChanged
    end
public abstract class PropertyValue implements INotifyPropertyChanged

The PropertyValue type exposes the following members.

Constructors

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

Top

Properties

  Name Description
Public property CanConvertFromString When overridden in a derived class, gets a value indicating whether Value can be converted from a string.
Protected property CatchExceptions Gets a value indicating how to handle exceptions that occur during the get and set methods of the Value and StringValue properties.
Public property Collection When overridden in a derived class, gets a PropertyValueCollection of objects that represents the value of the PropertyValue.
Public property HasSubProperties When overridden in a derived class, gets a value indicating whether this property value supports sub-properties.
Public property IsCollection When overridden in a derived class, gets a value indicating whether this PropertyValue is a collection.
Public property IsDefaultValue When overridden in a derived class, gets a value indicating whether the current Value is the default value for the property.
Public property IsMixedValue When overridden in a derived class, gets a value indicating whether this property value represents a property for multiple objects that have more than one value.
Public property ParentProperty Gets the parent of this PropertyValue.
Public property Source When overridden in a derived class, gets a PropertyValueSource that contains information about the source of this property value.
Public property StringValue Gets or sets the value of this PropertyValue as a String.
Public property SubProperties When overridden in a derived class, gets the sub-properties of this property value.
Public property Value Gets or sets the value of this PropertyValue.

Top

Methods

  Name Description
Public method ClearValue When overridden in a derived class, clears the value so that it is not set.
Protected method ConvertStringToValue When overridden in a derived class, attempts to convert the specified String to an Object.
Protected method ConvertValueToString When overridden in a derived class, attempts to convert the specified Object to a String.
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 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 GetValueCore When overridden in a derived class, returns the Object that should be returned by the Value property.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method NotifyRootValueChanged Raises the RootValueChanged event.
Protected method NotifySubPropertyChanged Raises the SubPropertyChanged event.
Protected method OnPropertyChanged(PropertyChangedEventArgs) Raises the PropertyChanged event with the specified PropertyChangedEventArgs.
Protected method OnPropertyChanged(String) Raises the PropertyChanged event with the specified string.
Protected method OnPropertyValueException Raises the PropertyValueException event.
Protected method SetValueCore When overridden in a derived class, sets the Value property to the specified Object.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Protected method ValidateValue When overridden in a derived class, checks that the specified Object contains a valid value before setting the Value property to it.

Top

Events

  Name Description
Public event PropertyChanged Represents the method that handles the PropertyChanged event of the PropertyValue.
Public event PropertyValueException Represents the method that handles the PropertyValueException event of the PropertyValue.
Public event RootValueChanged Represents the method that handles the RootValueChanged event of the PropertyValue.
Public event SubPropertyChanged Represents the method that handles the SubPropertyChanged event of the PropertyValue.

Top

Remarks

The PropertyValue class represents the underlying value of a property. The PropertyEntry class represents the property itself. The PropertyEntry is the parent, and the PropertyValue is the child.

If an instance of PropertyValue represents a value that is a collection, it uses the Collection property to return a PropertyValueCollection. An example of a property whose value is a collection is the RowDefinitions property.

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

PropertyValueEditor

Other Resources

WPF Designer Extensibility

Property Editing Architecture