PropertyDescriptorPropertyModel Class
Represents a property grid property IDataModel that is based on PropertyDescriptor data.
public class PropertyDescriptorPropertyModel : CachedPropertyModelBase, IPropertyModel, IDataModel, IDisposable, IServiceProvider
- Inheritance:
- object ObservableObjectBase DataModelBase PropertyModelBase CachedPropertyModelBase object
- Implements:
- IPropertyModel IDataModel IDisposable IServiceProvider
Constructors
PropertyDescriptorPropertyModel(object, PropertyDescriptor)
Initializes an instance of the PropertyDescriptorPropertyModel class.
public PropertyDescriptorPropertyModel(object target, PropertyDescriptor propertyDescriptor)
Parameter | Type | Description |
---|---|---|
target | object | The target object that owns the property. |
propertyDescriptor | PropertyDescriptor | The PropertyDescriptor for the property be accessed on the |
Properties
CanRemoveCore
Gets whether the property can be removed from an associated collection/parent.
protected override bool CanRemoveCore { get; }
Property Value
- bool:
true
if the property can be removed from an associated collection/parent; otherwise,false
.
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
CanResetValueCore
Gets whether the property can be reset to its default value.
protected override bool CanResetValueCore { get; }
Property Value
- bool:
true
if the property can be reset to its default value; otherwise,false
.
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
CategoryCore
Gets a category for the property.
protected override string CategoryCore { get; }
Property Value
- string:
A category for the property.
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
ConverterCore
Gets the TypeConverter to use for the property.
protected override TypeConverter ConverterCore { get; }
Property Value
- TypeConverter:
The TypeConverter to use for the property.
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
DescriptionCore
Gets the description of the data model, often displayed in a summary area or a tooltip.
protected override string DescriptionCore { get; }
Property Value
- string:
The description of the data model, often displayed in a summary area or a tooltip.
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
DisplayNameCore
Gets the name to use when displaying the data model, often the same as Name
.
protected override string DisplayNameCore { get; }
Property Value
- string:
The name to use when displaying the data model, often the same as
Name
.
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
IsImmutableCore
Gets whether the Value's child properties, if any, are capable of being edited.
protected override bool IsImmutableCore { get; }
Property Value
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
IsMergeableCore
Gets whether the property can be merged when presenting multiple objects.
protected override bool IsMergeableCore { get; }
Property Value
- bool:
true
if the property can be merged when presenting multiple objects; otherwise,false
.
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
IsModifiedCore
Gets whether the data model has been modified.
protected override bool IsModifiedCore { get; }
Property Value
- bool:
true
if the data model has been modified; otherwise,false
.
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
IsValueReadOnlyCore
Gets whether the Value
property is read-only.
protected override bool IsValueReadOnlyCore { get; }
Property Value
- bool:
true
if theValue
property is read-only; otherwise,false
.
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
NameCore
Gets the name of the data model.
protected override string NameCore { get; }
Property Value
- string:
The name of the data model.
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
PropertyDescriptor
Gets the PropertyDescriptor for the property be accessed on the target object.
public PropertyDescriptor PropertyDescriptor { get; }
Property Value
- PropertyDescriptor:
The PropertyDescriptor for the property be accessed on the target object.
ShouldNotifyParentOnValueChangeCore
Gets whether the property should notify its parent property when the Value changes.
protected override bool ShouldNotifyParentOnValueChangeCore { get; }
Property Value
- bool:
true
if the property should notify its parent property when the Value changes; otherwise,false
.
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
SortOrderCore
Gets a numeric sort order for sorting the data model within other data models of the same sort importance.
protected override int SortOrderCore { get; }
Property Value
- int:
A numeric sort order for sorting the data model within other data models of the same sort importance.
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
TargetCore
Gets the target object that owns the property.
protected override object TargetCore { get; }
Property Value
- object:
The target object that owns the property.
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
ValueCore
Gets or sets the property value.
protected override object ValueCore { get; set; }
Property Value
- object:
The property value.
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
ValueTypeCore
Gets the Type of the Value
property.
protected override Type ValueTypeCore { get; }
Property Value
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
Methods
Dispose(bool)
Releases the unmanaged resources used by the object and optionally releases the managed resources.
protected override void Dispose(bool disposing)
Parameter | Type | Description |
---|---|---|
disposing | bool |
|
Remarks
This method is called by the public Dispose
method and the Finalize
method.
Dispose
invokes this method with the disposing
parameter set to true
.
Finalize
invokes this method with disposing
set to false
.
Remove()
Removes the property from an associated collection/parent.
public override void Remove()
ResetValue()
Resets the property value to its default value.
public override void ResetValue()
Inherited Members
- CachedPropertyModelBase.OnPropertyChanged(PropertyChangedEventArgs)
- CachedPropertyModelBase.CanAddChild
- CachedPropertyModelBase.CanAddChildCore
- CachedPropertyModelBase.CanAddChildResolved
- CachedPropertyModelBase.CanRemove
- CachedPropertyModelBase.CanRemoveResolved
- CachedPropertyModelBase.CanResetValue
- CachedPropertyModelBase.CanResetValueResolved
- CachedPropertyModelBase.Category
- CachedPropertyModelBase.Converter
- CachedPropertyModelBase.ConverterResolved
- CachedPropertyModelBase.Description
- CachedPropertyModelBase.DescriptionResolved
- CachedPropertyModelBase.DisplayName
- CachedPropertyModelBase.DisplayNameResolved
- CachedPropertyModelBase.HasStandardValues
- CachedPropertyModelBase.HasStandardValuesCore
- CachedPropertyModelBase.IsImmutable
- CachedPropertyModelBase.IsImmutableResolved
- CachedPropertyModelBase.IsLimitedToStandardValues
- CachedPropertyModelBase.IsLimitedToStandardValuesCore
- CachedPropertyModelBase.IsMergeable
- CachedPropertyModelBase.IsModified
- CachedPropertyModelBase.IsModifiedResolved
- CachedPropertyModelBase.IsValueReadOnly
- CachedPropertyModelBase.IsValueReadOnlyResolved
- CachedPropertyModelBase.Name
- CachedPropertyModelBase.NameResolved
- CachedPropertyModelBase.NameTemplate
- CachedPropertyModelBase.NameTemplateCore
- CachedPropertyModelBase.NameTemplateKey
- CachedPropertyModelBase.NameTemplateKeyCore
- CachedPropertyModelBase.NameTemplateSelector
- CachedPropertyModelBase.NameTemplateSelectorCore
- CachedPropertyModelBase.ShouldNotifyParentOnValueChange
- CachedPropertyModelBase.ShouldNotifyParentOnValueChangeResolved
- CachedPropertyModelBase.SortImportance
- CachedPropertyModelBase.SortImportanceCore
- CachedPropertyModelBase.SortImportanceResolved
- CachedPropertyModelBase.SortOrder
- CachedPropertyModelBase.SortOrderResolved
- CachedPropertyModelBase.StandardValues
- CachedPropertyModelBase.StandardValuesCore
- CachedPropertyModelBase.StandardValuesResolved
- CachedPropertyModelBase.StandardValuesAsStrings
- CachedPropertyModelBase.StandardValuesAsStringsCore
- CachedPropertyModelBase.Target
- CachedPropertyModelBase.TargetResolved
- CachedPropertyModelBase.TargetType
- CachedPropertyModelBase.Value
- CachedPropertyModelBase.ValueResolved
- CachedPropertyModelBase.ValueAsString
- CachedPropertyModelBase.ValueAsStringCore
- CachedPropertyModelBase.Values
- CachedPropertyModelBase.ValuesCore
- CachedPropertyModelBase.ValueTemplate
- CachedPropertyModelBase.ValueTemplateCore
- CachedPropertyModelBase.ValueTemplateKey
- CachedPropertyModelBase.ValueTemplateKeyCore
- CachedPropertyModelBase.ValueTemplateKind
- CachedPropertyModelBase.ValueTemplateKindCore
- CachedPropertyModelBase.ValueTemplateSelector
- CachedPropertyModelBase.ValueTemplateSelectorCore
- CachedPropertyModelBase.ValueType
- CachedPropertyModelBase.ValueTypeResolved
- PropertyModelBase.AddChild()
- PropertyModelBase.ConvertFromString(string)
- PropertyModelBase.ConvertToString(object)
- PropertyModelBase.CycleToNextStandardValue()
- PropertyModelBase.GetErrorMessages(string)
- PropertyModelBase.RaiseChildPropertyAddedEvent(PropertyModelChildChangeEventArgs)
- PropertyModelBase.RaiseChildPropertyAddingEvent(PropertyModelChildChangeEventArgs)
- PropertyModelBase.RaiseChildPropertyRemovedEvent(PropertyModelChildChangeEventArgs)
- PropertyModelBase.RaiseChildPropertyRemovingEvent(PropertyModelChildChangeEventArgs)
- PropertyModelBase.RaisePropertyValueChangedEvent(PropertyModelValueChangeEventArgs)
- PropertyModelBase.RaisePropertyValueChangingEvent(PropertyModelValueChangeEventArgs)
- PropertyModelBase.Refresh(PropertyRefreshReason)
- PropertyModelBase.AddChildCommand
- PropertyModelBase.IsHostReadOnly
- PropertyModelBase.IsReadOnly
- PropertyModelBase.NamePropertyEditor
- PropertyModelBase.RemoveCommand
- PropertyModelBase.ResetValueCommand
- PropertyModelBase.StandardValuesDisplayMemberPath
- PropertyModelBase.StandardValuesSelectedValuePath
- PropertyModelBase.ValuePropertyEditor
- DataModelBase.Dispose()
- DataModelBase.RefreshChildren()
- DataModelBase.ToString()
- DataModelBase.CanAutoDispose
- DataModelBase.Children
- DataModelBase.IsExpanded
- DataModelBase.IsRoot
- DataModelBase.IsSelected
- DataModelBase.Parent
- DataModelBase.SortComparer
- DataModelBase.Tag
- ObservableObjectBase.NotifyPropertyChanged(string)
- ObservableObjectBase.SetProperty<T>(ref T, T, string)
- ObservableObjectBase.PropertyChanged
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()