# TrackBar

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (3.1.0.0)

* [Control](https://docs.wisej.com/api/v3.1/wisej.web/general/control)
  * [TrackBar](https://docs.wisej.com/api/v3.1/wisej.web/editors/wisej.web.trackbar)

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

{% tabs %}
{% tab title="C#" %}

```csharp
public class TrackBar : Control, ISupportInitialize
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class TrackBar
    Inherits Control
    Implements ISupportInitialize
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)TrackBar()

Initializes a new instance of the [TrackBar](https://docs.wisej.com/api/v3.1/wisej.web/editors/wisej.web.trackbar) class.

## Properties

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)AutoSize

[Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean): Returns or sets whether the height or width of the track bar is being automatically sized. (Default: `True`)

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)LargeChange

[Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32): Returns or sets a value to be added to or subtracted from the [Value](#value) property when the scroll box is moved a large distance. (Default: `5`)

**Throws:**

* [ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentexception) The assigned value is less than 0.

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Maximum

[Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32): Returns or sets the upper limit of the range this [TrackBar](https://docs.wisej.com/api/v3.1/wisej.web/editors/wisej.web.trackbar) is working with. (Default: `10`)

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Minimum

[Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32): Returns or sets the lower limit of the range this [TrackBar](https://docs.wisej.com/api/v3.1/wisej.web/editors/wisej.web.trackbar) is working with. (Default: `0`)

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Orientation

[Orientation](https://docs.wisej.com/api/v3.1/wisej.web/enumerations/wisej.web.orientation): Returns or sets a value indicating the horizontal or vertical orientation of the track bar. (Default: `Horizontal`)

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)ShowValue

[Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.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".

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)SmallChange

[Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32): Returns or sets the value added to or subtracted from the [Value](#value) property when the scroll box is moved a small distance. (Default: `1`)

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)TickFrequency

[Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32): Returns or sets a value that specifies the delta between ticks drawn on the control. (Default: `1`)

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)TickStyle

[TickStyle](https://docs.wisej.com/api/v3.1/wisej.web/enumerations/wisej.web.tickstyle): Returns or sets a value indicating how to display the tick marks on the track bar. (Default: `BottomRight`)

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Value

[Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32): Returns or sets a numeric value that represents the current position of the scroll box on the track bar. (Default: `0`)

**Throws:**

* [ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentexception) The assigned value is less than the value of [Minimum](#minimum); or the assigned value is greater than the value of [Maximum](#maximum).

## Methods

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)SetRange(minValue, maxValue)

Sets the minimum and maximum values for a [TrackBar](https://docs.wisej.com/api/v3.1/wisej.web/editors/wisej.web.trackbar).

| Parameter    | Type                                                              | Description                                    |
| ------------ | ----------------------------------------------------------------- | ---------------------------------------------- |
| **minValue** | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32) | The lower limit of the range of the track bar. |
| **maxValue** | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32) | The upper limit of the range of the track bar. |

## Events

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)AutoSizeChanged

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) Fired when the value of the [AutoSize](#autosize) property changes.

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Scroll

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) Fired when either a mouse or keyboard action moves the scroll box.

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)ValueChanged

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) Fired when the [Value](#value) property of a track bar changes, either by movement of the scroll box or by manipulation in code.

## Implements

| Name                                                                                                      | Description                                                                                                                                   |
| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| [IBindableComponent](https://docs.wisej.com/api/v3.1/wisej.web/data-binding/wisej.web.ibindablecomponent) | Bindable components implement this interface.                                                                                                 |
| [IDropTarget](https://docs.wisej.com/api/v3.1/wisej.web/interfaces/wisej.web.idroptarget)                 | Controls that support drag & drop operations implement this interface.                                                                        |
| [IWisejComponent](https://docs.wisej.com/api/v3.1/wisej.core/interfaces/wisej.core.iwisejcomponent)       | All wisej components implement this interface.                                                                                                |
| [IWisejControl](https://docs.wisej.com/api/v3.1/wisej.core/interfaces/wisej.core.iwisejcontrol)           | All wisej controls derived from the [Control](https://docs.wisej.com/api/v3.1/wisej.web/general/control) class must implement this interface. |
| [IWisejSerializable](https://docs.wisej.com/api/v3.1/wisej.core/interfaces/wisej.core.iwisejserializable) | Allows an object to serialize itself.                                                                                                         |
