Table of Contents

Class SpikeThresholdEditor

Namespace
Bonsai.Dsp.Design
Assembly
Bonsai.Dsp.Design.dll

Provides a user interface editor that displays a drop-down dialog for setting spike detection thresholds on individual channels of the input signal.

public class SpikeThresholdEditor : DataSourceTypeEditor
Inheritance
SpikeThresholdEditor
Inherited Members

Constructors

SpikeThresholdEditor()

Initializes a new instance of the SpikeThresholdEditor class.

public SpikeThresholdEditor()

Properties

IsDropDownResizable

Gets a value indicating whether drop-down editors should be resizable by the user.

public override bool IsDropDownResizable { get; }

Property Value

bool

true if drop-down editors are resizable; otherwise, false.

Methods

EditValue(ITypeDescriptorContext, IServiceProvider, object)

Edits the specified object's value using the editor style indicated by the GetEditStyle() method.

public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)

Parameters

context ITypeDescriptorContext

An ITypeDescriptorContext that can be used to gain additional context information.

provider IServiceProvider

An IServiceProvider that this editor can use to obtain services.

value object

The object to edit.

Returns

object

The new value of the object. If the value of the object has not changed, this should return the same object it was passed.

GetEditStyle(ITypeDescriptorContext)

Gets the editor style used by the EditValue(IServiceProvider, object) method.

public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context)

Parameters

context ITypeDescriptorContext

An ITypeDescriptorContext that can be used to gain additional context information.

Returns

UITypeEditorEditStyle

A UITypeEditorEditStyle value that indicates the style of editor used by the EditValue(IServiceProvider, object) method. If the UITypeEditor does not support this method, then GetEditStyle() will return None.