Skip to main content
Version: 3.5

TrackBar

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Enables the user to choose between a range of values by sliding a small bar along another bar.

public class TrackBar : Control, ISupportInitialize

Constructors​

Instance memberTrackBar()​

Initializes a new instance of the TrackBar class.

Instance memberTrackBar(onValueChanged)​

Initializes a new instance of the TrackBar class with a specified initial value and an event handler for the ValueChanged event.

NameTypeDescription
onValueChangedAction<Object, EventArgs>An Action delegate to handle the ValueChanged event. Can be null.

Instance memberTrackBar(location, size, onValueChanged)​

Initializes a new instance of the TrackBar class with a specified location and size.

NameTypeDescription
locationPointThe location of the TrackBar on its parent control.
sizeSizeThe size of the TrackBar.
onValueChangedAction<Object, EventArgs>An Action delegate to handle the ValueChanged event. Can be null.

Properties​

Instance memberAutoSize​

Boolean: Returns or sets whether the height or width of the track bar is being automatically sized. (Default: True)

Instance memberLargeChange​

Int32: Returns or sets a value to be added to or subtracted from the Value property when the scroll box is moved a large distance. (Default: 5)

Throws:

Instance memberMaximum​

Int32: Returns or sets the upper limit of the range this TrackBar is working with. (Default: 10)

Instance memberMinimum​

Int32: Returns or sets the lower limit of the range this TrackBar is working with. (Default: 0)

Instance memberOrientation​

Orientation: Returns or sets a value indicating the horizontal or vertical orientation of the track bar. (Default: Horizontal)

Instance memberShowValue​

Boolean: Returns or sets a flag indicating whether the value is displayed in a bubble control while the user is moving the knob. (Default: True)

The appearance key of the child bubble component is "bubble".

Instance memberSmallChange​

Int32: Returns or sets the value added to or subtracted from the Value property when the scroll box is moved a small distance. (Default: 1)

Instance memberTickFrequency​

Int32: Returns or sets a value that specifies the delta between ticks drawn on the control. (Default: 1)

Instance memberTickStyle​

TickStyle: Returns or sets a value indicating how to display the tick marks on the track bar. (Default: BottomRight)

Instance memberValue​

Int32: Returns or sets a numeric value that represents the current position of the scroll box on the track bar. (Default: 0)

Throws:

Methods​

Instance memberSetRange(minValue, maxValue)​

Sets the minimum and maximum values for a TrackBar.

ParameterTypeDescription
minValueInt32The lower limit of the range of the track bar.
maxValueInt32The upper limit of the range of the track bar.

Events​

Instance memberAutoSizeChanged​

EventHandler Fired when the value of the AutoSize property changes.

Instance memberScroll​

EventHandler Fired when either a mouse or keyboard action moves the scroll box.

Instance memberTextChanged​

EventHandler Fired when the Text property changes.

Instance memberValueChanged​

EventHandler Fired when the Value property of a track bar changes, either by movement of the scroll box or by manipulation in code.

Implements​

NameDescription
IBindableComponentBindable components implement this interface.
IDropTargetControls that support drag & drop operations implement this interface.
IWisejComponentAll wisej components implement this interface.
IWisejControlAll wisej controls derived from the Control class must implement this interface.
IWisejSerializableAllows an object to serialize itself.