Table of Contents

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 string

The name of the property.

descr PropertyDescriptor

The 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 object

The 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)

Parameters

component object

The component with the property value that is to be set.

value object

The new value.