Slider Class

The Slider is a form control used to select a value from a defined range by dragging a "thumb" along a horizontal or vertical bar. To use a Slider, first create it, then set the Minimum, Maximum, Orientation, TickFrequency, and Value properties. An event handler can also be assigned to be called when the Scroll event fires (that is, when the Slider's value is changed).

Namespace: elsystem.windows.forms

Properties

   Additional properties, methods, and events are described in the classes listed under Inheritance Hierarchy (see below).

  Name Type Description
Public property LargeChange int Gets or sets a value to be added to or subtracted from the Value when the cursor is clicked within the slider but outside the thumb.
Public property Maximum int Gets or sets the highest possible Value of the range element.
Public property Minimum int Gets or sets the minimum possible Value of the range element.
Public property Orientation enum Gets or sets the orientation of a Slider. See SliderOrientation for a list of values.
Public property SmallChange int Gets or sets the minimum increment made to Value when the range control (thumb) is moved.
Public property TickFrequency int Gets or sets the frequency at which tick marks appear on the slider.
Public property Value int Gets or sets the current position of the slider.
Methods
  Name Description
Public property Create() Initializes a new instance of the Slider class.  
Public property Create(width, height) Initializes a new instance of the Slider class.  
Events
  Name Description
Public event

Scroll

Occurs when the Value property changes.