# TrackBarExtensions

Namespace: **Wisej.Web.Markup**

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

Adds [fluent markup](https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/markup/markup) extension methods to the [TrackBar](https://docs.wisej.com/api/wisej.web/editors/wisej.web.trackbar) class.

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

```csharp
public class TrackBarExtensions
```

{% endtab %}

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

```visual-basic
Public Class TrackBarExtensions
```

{% endtab %}
{% endtabs %}

## Methods

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) Maximum\<TTrackBar>(trackBar, maximum)

Sets the maximum value of the specified track bar.

| Parameter     | Type                                                                                                    | Description               |
| ------------- | ------------------------------------------------------------------------------------------------------- | ------------------------- |
| **TTrackBar** |                                                                                                         |                           |
| **trackBar**  | [TTrackBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.trackbarextensions) | The track bar to modify.  |
| **maximum**   | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                             | The maximum value to set. |

**Returns:** [TTrackBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.trackbarextensions). The modified track bar with the updated maximum value.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) Minimum\<TTrackBar>(trackBar, minimum)

Sets the minimum value of the specified track bar.

| Parameter     | Type                                                                                                    | Description               |
| ------------- | ------------------------------------------------------------------------------------------------------- | ------------------------- |
| **TTrackBar** |                                                                                                         |                           |
| **trackBar**  | [TTrackBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.trackbarextensions) | The track bar to modify.  |
| **minimum**   | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                             | The minimum value to set. |

**Returns:** [TTrackBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.trackbarextensions). The modified track bar with the updated minimum value.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) OnScroll\<TTrackBar>(trackBar, action)

Attaches an event handler to the Scroll event of the specified track bar.

| Parameter     | Type                                                                                                    | Description                                               |
| ------------- | ------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- |
| **TTrackBar** |                                                                                                         |                                                           |
| **trackBar**  | [TTrackBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.trackbarextensions) | The track bar to modify.                                  |
| **action**    | [Action\<TTrackBar>](https://docs.microsoft.com/dotnet/api/system.action-1)                             | The action to perform when the Scroll event is triggered. |

**Returns:** [TTrackBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.trackbarextensions). The modified track bar with the event handler attached.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) OnValueChanged\<TTrackBar>(trackBar, action)

Attaches an event handler to the ValueChanged event of the specified track bar.

| Parameter     | Type                                                                                                    | Description                                                     |
| ------------- | ------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| **TTrackBar** |                                                                                                         |                                                                 |
| **trackBar**  | [TTrackBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.trackbarextensions) | The track bar to modify.                                        |
| **action**    | [Action\<TTrackBar>](https://docs.microsoft.com/dotnet/api/system.action-1)                             | The action to perform when the ValueChanged event is triggered. |

**Returns:** [TTrackBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.trackbarextensions). The modified track bar with the event handler attached.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) Orientation\<TTrackBar>(trackBar, orientation)

Sets the orientation of the specified track bar.

| Parameter       | Type                                                                                                    | Description              |
| --------------- | ------------------------------------------------------------------------------------------------------- | ------------------------ |
| **TTrackBar**   |                                                                                                         |                          |
| **trackBar**    | [TTrackBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.trackbarextensions) | The track bar to modify. |
| **orientation** | [Orientation](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.orientation)                  | The orientation to set.  |

**Returns:** [TTrackBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.trackbarextensions). The modified track bar with the updated orientation.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) ShowValue\<TTrackBar>(trackBar, showValue)

Configures whether the value should be displayed on the specified track bar.

| Parameter     | Type                                                                                                    | Description                                      |
| ------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
| **TTrackBar** |                                                                                                         |                                                  |
| **trackBar**  | [TTrackBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.trackbarextensions) | The track bar to modify.                         |
| **showValue** | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean)                                         | Indicates whether the value should be displayed. |

**Returns:** [TTrackBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.trackbarextensions). The modified track bar with the updated display setting.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) SmallChange\<TTrackBar>(trackBar, smallChange)

Sets the small change value of the specified track bar.

| Parameter       | Type                                                                                                    | Description                    |
| --------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------ |
| **TTrackBar**   |                                                                                                         |                                |
| **trackBar**    | [TTrackBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.trackbarextensions) | The track bar to modify.       |
| **smallChange** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                             | The small change value to set. |

**Returns:** [TTrackBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.trackbarextensions). The modified track bar with the updated small change value.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) TickFrequency\<TTrackBar>(trackBar, tickFrequency)

Sets the tick frequency of the specified track bar.

| Parameter         | Type                                                                                                    | Description                |
| ----------------- | ------------------------------------------------------------------------------------------------------- | -------------------------- |
| **TTrackBar**     |                                                                                                         |                            |
| **trackBar**      | [TTrackBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.trackbarextensions) | The track bar to modify.   |
| **tickFrequency** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                             | The tick frequency to set. |

**Returns:** [TTrackBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.trackbarextensions). The modified track bar with the updated tick frequency.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) TickStyle\<TTrackBar>(trackBar, tickStyle)

Sets the tick style of the specified track bar.

| Parameter     | Type                                                                                                    | Description              |
| ------------- | ------------------------------------------------------------------------------------------------------- | ------------------------ |
| **TTrackBar** |                                                                                                         |                          |
| **trackBar**  | [TTrackBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.trackbarextensions) | The track bar to modify. |
| **tickStyle** | [TickStyle](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.tickstyle)                      | The tick style to set.   |

**Returns:** [TTrackBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.trackbarextensions). The modified track bar with the updated tick style.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) Value\<TTrackBar>(trackBar, value)

Sets the value of the specified track bar.

| Parameter     | Type                                                                                                    | Description              |
| ------------- | ------------------------------------------------------------------------------------------------------- | ------------------------ |
| **TTrackBar** |                                                                                                         |                          |
| **trackBar**  | [TTrackBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.trackbarextensions) | The track bar to modify. |
| **value**     | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                             | The value to set.        |

**Returns:** [TTrackBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.trackbarextensions). The modified track bar with the updated value.
