Table of Contents

Class Slider

Namespace
Bonsai.Design
Assembly
Bonsai.Design.dll

Represents a slider control used to select values from a continuous range.

public class Slider : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
Inheritance
Slider
Implements
Inherited Members

Constructors

Slider()

Initializes a new instance of the Slider class.

public Slider()

Properties

Converter

Gets or sets the type converter used to convert the slider value to a text representation.

public TypeConverter Converter { get; set; }

Property Value

TypeConverter

DecimalPlaces

Gets or sets an optional maximum number of decimal places used when formatting the numeric display of the slider.

public int? DecimalPlaces { get; set; }

Property Value

int?

Maximum

Gets or sets the upper limit of values in the slider.

public double Maximum { get; set; }

Property Value

double

Minimum

Gets or sets the lower limit of values in the slider.

public double Minimum { get; set; }

Property Value

double

Value

Gets or sets a numeric value which represents the position of the slider.

public double Value { get; set; }

Property Value

double

Methods

Dispose(bool)

Clean up any resources being used.

protected override void Dispose(bool disposing)

Parameters

disposing bool

true if managed resources should be disposed; otherwise, false.

OnSizeChanged(EventArgs)

Raises the SizeChanged event.

protected override void OnSizeChanged(EventArgs e)

Parameters

e EventArgs

An EventArgs that contains the event data.

Events

ValueChanged

Occurs when the slider value changes.

public event EventHandler ValueChanged

Event Type

EventHandler