Table of Contents

Class DataSourceTypeEditor

Namespace
Bonsai.Design
Assembly
Bonsai.Design.dll

Provides an abstract base class for property editors that require inspecting the runtime notifications of an operator to provide their functionality.

public abstract class DataSourceTypeEditor : UITypeEditor
Inheritance
DataSourceTypeEditor
Derived
Inherited Members

Constructors

DataSourceTypeEditor(DataSource)

Initializes a new instance of the DataSourceTypeEditor class using the specified data source.

protected DataSourceTypeEditor(DataSourceTypeEditor.DataSource source)

Parameters

source DataSourceTypeEditor.DataSource

Specifies the source of runtime notifications to the property editor.

DataSourceTypeEditor(DataSource, Type)

Initializes a new instance of the DataSourceTypeEditor class using the specified data source and target data type.

protected DataSourceTypeEditor(DataSourceTypeEditor.DataSource source, Type targetType)

Parameters

source DataSourceTypeEditor.DataSource

Specifies the source of runtime notifications to the property editor.

targetType Type

The type of values emitted by the data source.

Methods

GetDataSource(ITypeDescriptorContext, IServiceProvider)

Gets the source of runtime notifications arriving to or from the operator.

protected InspectBuilder GetDataSource(ITypeDescriptorContext context, IServiceProvider provider)

Parameters

context ITypeDescriptorContext

An ITypeDescriptorContext object that can be used to obtain additional context information.

provider IServiceProvider

An IServiceProvider object that this editor can use to obtain services.

Returns

InspectBuilder

An InspectBuilder object that can be used to subscribe to runtime notifications arriving to or from the operator.