Class NumericRecordConverter.PropertyDescriptorWrapper
- Namespace
- Bonsai
- Assembly
- Bonsai.Core.dll
Represents a class used for providing custom property metadata for an object.
protected class NumericRecordConverter.PropertyDescriptorWrapper : TypeConverter.SimplePropertyDescriptor
- Inheritance
-
NumericRecordConverter.PropertyDescriptorWrapper
- Inherited Members
Constructors
PropertyDescriptorWrapper(string, PropertyDescriptor, Attribute[])
Initializes a new instance of the NumericRecordConverter.PropertyDescriptorWrapper class.
public PropertyDescriptorWrapper(string name, PropertyDescriptor descr, Attribute[] attributes)
Parameters
name
stringThe name of the property.
descr
PropertyDescriptorThe underlying property used for the redirection.
attributes
Attribute[]An Array with the attributes to associate with the property.
Methods
GetValue(object)
Gets the current value of the property on a component.
public override object GetValue(object component)
Parameters
component
objectThe component with the property for which to retrieve the value.
Returns
- object
The value of a property for a given component.
SetValue(object, object)
Sets a property of the component to a different value.
public override void SetValue(object component, object value)