PropertyValue Class
Represents the value of a property.
Namespace:
Microsoft.Windows.Design.PropertyEditing
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
The PropertyValue type exposes the following members.
| Name | Description | |
|---|---|---|
|
CanConvertFromString | When overridden in a derived class, gets a value indicating whether Value can be converted from a string. |
|
CatchExceptions | Gets a value indicating how to handle exceptions that occur during the get and set methods of the Value and StringValue properties. |
|
Collection | When overridden in a derived class, gets a PropertyValueCollection of objects that represents the value of the PropertyValue. |
|
HasSubProperties | When overridden in a derived class, gets a value indicating whether this property value supports sub-properties. |
|
IsCollection | When overridden in a derived class, gets a value indicating whether this PropertyValue is a collection. |
|
IsDefaultValue | When overridden in a derived class, gets a value indicating whether the current Value is the default value for the 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. |
|
ParentProperty | Gets the parent of this PropertyValue. |
|
Source | When overridden in a derived class, gets a PropertyValueSource that contains information about the source of this property value. |
|
StringValue | Gets or sets the value of this PropertyValue as a String. |
|
SubProperties | When overridden in a derived class, gets the sub-properties of this property value. |
|
Value | Gets or sets the value of this PropertyValue. |
| Name | Description | |
|---|---|---|
|
ClearValue | When overridden in a derived class, clears the value so that it is not set. |
|
ConvertStringToValue | When overridden in a derived class, attempts to convert the specified String to an Object. |
|
ConvertValueToString | When overridden in a derived class, attempts to convert the specified Object to a String. |
|
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.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
GetValueCore | When overridden in a derived class, returns the Object that should be returned by the Value property. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
NotifyRootValueChanged | Raises the RootValueChanged event. |
|
NotifySubPropertyChanged | Raises the SubPropertyChanged event. |
|
OnPropertyChanged(PropertyChangedEventArgs) | Raises the PropertyChanged event with the specified PropertyChangedEventArgs. |
|
OnPropertyChanged(String) | Raises the PropertyChanged event with the specified string. |
|
OnPropertyValueException | Raises the PropertyValueException event. |
|
SetValueCore | When overridden in a derived class, sets the Value property to the specified Object. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
|
ValidateValue | When overridden in a derived class, checks that the specified Object contains a valid value before setting the Value property to it. |
| Name | Description | |
|---|---|---|
|
PropertyChanged | Represents the method that handles the PropertyChanged event of the PropertyValue. |
|
PropertyValueException | Represents the method that handles the PropertyValueException event of the PropertyValue. |
|
RootValueChanged | Represents the method that handles the RootValueChanged event of the PropertyValue. |
|
SubPropertyChanged | Represents the method that handles the SubPropertyChanged event of the PropertyValue. |
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.