PropertyValue PropertyValue PropertyValue PropertyValue Class

Definition

Maintains a data model for the value of a property in the property grid.

public ref class PropertyValue abstract : System::ComponentModel::INotifyPropertyChanged
public abstract class PropertyValue : System.ComponentModel.INotifyPropertyChanged
type PropertyValue = class
    interface INotifyPropertyChanged
Public MustInherit Class PropertyValue
Implements INotifyPropertyChanged
Inheritance
PropertyValuePropertyValuePropertyValuePropertyValue
Implements

Constructors

PropertyValue(PropertyEntry) PropertyValue(PropertyEntry) PropertyValue(PropertyEntry) PropertyValue(PropertyEntry)

Initializes a new instance of the PropertyValue class with the parent property set to a specified PropertyEntry object.

Properties

CanConvertFromString CanConvertFromString CanConvertFromString CanConvertFromString

When implemented in a derived class, gets a value that indicates whether Value can be converted from a string.

CatchExceptions CatchExceptions CatchExceptions CatchExceptions

Gets a value that indicates whether exceptions thrown during property value getting and setting should be caught or should be propagated directly to the caller.

Collection Collection Collection Collection

When implemented in a derived class, gets a collection of PropertyValue instances that correspond to items in a collection when IsCollection verifies that the property is a collection.

HasSubProperties HasSubProperties HasSubProperties HasSubProperties

When implemented in a derived class, gets a value that indicates whether the type of this property supports sub-properties.

IsCollection IsCollection IsCollection IsCollection

When implemented in a derived class, gets a value that indicates whether this PropertyValue is a collection.

IsDefaultValue IsDefaultValue IsDefaultValue IsDefaultValue

When implemented in a derived class, gets a value that indicates whether the Value is the default value for the property.

IsMixedValue IsMixedValue IsMixedValue IsMixedValue

When implemented in a derived class, gets a value that indicates whether multiple objects contain this property and have different values.

ParentProperty ParentProperty ParentProperty ParentProperty

Gets the parent PropertyEntry when the property implementation occurs in a host environment.

Source Source Source Source

When implemented in a derived class, gets a PropertyValueSource object that contains information about where this property value is coming from.

StringValue StringValue StringValue StringValue

Gets or sets a Value as a String.

SubProperties SubProperties SubProperties SubProperties

When implemented in a derived class, gets a collection of sub-properties as PropertyEntry instances.

Value Value Value Value

Gets or sets a property value in the underlying collection of property data.

Methods

ClearValue() ClearValue() ClearValue() ClearValue()

When implemented in a derived class, clears the PropertyValue so that it is unset.

ConvertStringToValue(String) ConvertStringToValue(String) ConvertStringToValue(String) ConvertStringToValue(String)

When implemented in a derived class, converts the specified StringValue to a Value.

ConvertValueToString(Object) ConvertValueToString(Object) ConvertValueToString(Object) ConvertValueToString(Object)

When implemented in a derived class, converts the specified Value to a StringValue.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetValueCore() GetValueCore() GetValueCore() GetValueCore()

When implemented in a derived class, returns a Value.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
NotifyRootValueChanged() NotifyRootValueChanged() NotifyRootValueChanged() NotifyRootValueChanged()

Raises the RootValueChanged event when the underlying value type is changed externally, as on the design surface.

NotifySubPropertyChanged() NotifySubPropertyChanged() NotifySubPropertyChanged() NotifySubPropertyChanged()

Raises the SubPropertyChanged event when one of the sub-properties of this property has changed.

OnPropertyChanged(PropertyChangedEventArgs) OnPropertyChanged(PropertyChangedEventArgs) OnPropertyChanged(PropertyChangedEventArgs) OnPropertyChanged(PropertyChangedEventArgs)

Raises the PropertyChanged event with the specified PropertyChangedEventArgs objects.

OnPropertyChanged(String) OnPropertyChanged(String) OnPropertyChanged(String) OnPropertyChanged(String)

Raises the PropertyChanged event that uses the name of the property that changed.

OnPropertyValueException(PropertyValueExceptionEventArgs) OnPropertyValueException(PropertyValueExceptionEventArgs) OnPropertyValueException(PropertyValueExceptionEventArgs) OnPropertyValueException(PropertyValueExceptionEventArgs)

Default implementation that raises the PropertyValueException event when PropertyValue properties experience failure getting or setting values in the underlying collection of data.

SetValueCore(Object) SetValueCore(Object) SetValueCore(Object) SetValueCore(Object)

When implemented in a derived class, sets the Value.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
ValidateValue(Object) ValidateValue(Object) ValidateValue(Object) ValidateValue(Object)

When implemented in a derived class, throws an exception if verification of the specified value object shows it to be invalid.

Events

PropertyChanged PropertyChanged PropertyChanged PropertyChanged

Occurs when properties or sub-properties of the PropertyValue object has changed.

PropertyValueException PropertyValueException PropertyValueException PropertyValueException

Event used by host implementations for error handling.

RootValueChanged RootValueChanged RootValueChanged RootValueChanged

Occurs when the Value or StringValue property is updated as a result of the PropertyValue value being changed.

SubPropertyChanged SubPropertyChanged SubPropertyChanged SubPropertyChanged

Occurs when sub-properties are updated as a result of the PropertyValue being changed.

Applies to