PropertyValue Class

PropertyValue Class

Represents the value of a property.

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

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

public abstract class PropertyValue : INotifyPropertyChanged

The PropertyValue type exposes the following members.

  NameDescription
Protected methodPropertyValueInitializes a new instance of the PropertyValue class.
Top

  NameDescription
Public propertyCanConvertFromStringWhen overridden in a derived class, gets a value indicating whether Value can be converted from a string.
Protected propertyCatchExceptionsGets a value indicating how to handle exceptions that occur during the get and set methods of the Value and StringValue properties.
Public propertyCollectionWhen overridden in a derived class, gets a PropertyValueCollection of objects that represents the value of the PropertyValue.
Public propertyHasSubPropertiesWhen overridden in a derived class, gets a value indicating whether this property value supports sub-properties.
Public propertyIsCollectionWhen overridden in a derived class, gets a value indicating whether this PropertyValue is a collection.
Public propertyIsDefaultValueWhen overridden in a derived class, gets a value indicating whether the current Value is the default value for the property.
Public propertyIsMixedValueWhen 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 propertyParentPropertyGets the parent of this PropertyValue.
Public propertySourceWhen overridden in a derived class, gets a PropertyValueSource that contains information about the source of this property value.
Public propertyStringValueGets or sets the value of this PropertyValue as a String.
Public propertySubPropertiesWhen overridden in a derived class, gets the sub-properties of this property value.
Public propertyValueGets or sets the value of this PropertyValue.
Top

  NameDescription
Public methodClearValueWhen overridden in a derived class, clears the value so that it is not set.
Protected methodConvertStringToValueWhen overridden in a derived class, attempts to convert the specified String to an Object.
Protected methodConvertValueToStringWhen overridden in a derived class, attempts to convert the specified Object to a String.
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodGetValueCoreWhen overridden in a derived class, returns the Object that should be returned by the Value property.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodNotifyRootValueChangedRaises the RootValueChanged event.
Protected methodNotifySubPropertyChangedRaises the SubPropertyChanged event.
Protected methodOnPropertyChanged(PropertyChangedEventArgs)Raises the PropertyChanged event with the specified PropertyChangedEventArgs.
Protected methodOnPropertyChanged(String)Raises the PropertyChanged event with the specified string.
Protected methodOnPropertyValueExceptionRaises the PropertyValueException event.
Protected methodSetValueCoreWhen overridden in a derived class, sets the Value property to the specified Object.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Protected methodValidateValueWhen overridden in a derived class, checks that the specified Object contains a valid value before setting the Value property to it.
Top

  NameDescription
Public eventPropertyChangedRepresents the method that handles the PropertyChanged event of the PropertyValue.
Public eventPropertyValueExceptionRepresents the method that handles the PropertyValueException event of the PropertyValue.
Public eventRootValueChangedRepresents the method that handles the RootValueChanged event of the PropertyValue.
Public eventSubPropertyChangedRepresents the method that handles the SubPropertyChanged event of the PropertyValue.
Top

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.

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

Community Additions

ADD
Show:
© 2016 Microsoft