TrackBarExtensions
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.1.0.0)
Adds fluent markup extension methods to the TrackBar class.
- C#
- VB.NET
public class TrackBarExtensions
Public Class TrackBarExtensions
Methods
Maximum<TTrackBar>(trackBar, maximum)
Sets the maximum value of the specified track bar.
| Parameter | Type | Description |
|---|---|---|
| TTrackBar | ||
| trackBar | TTrackBar | The track bar to modify. |
| maximum | Int32 | The maximum value to set. |
Returns: TTrackBar. The modified track bar with the updated maximum value.
Minimum<TTrackBar>(trackBar, minimum)
Sets the minimum value of the specified track bar.
| Parameter | Type | Description |
|---|---|---|
| TTrackBar | ||
| trackBar | TTrackBar | The track bar to modify. |
| minimum | Int32 | The minimum value to set. |
Returns: TTrackBar. The modified track bar with the updated minimum value.
OnScroll<TTrackBar>(trackBar, action)
Attaches an event handler to the Scroll event of the specified track bar.
| Parameter | Type | Description |
|---|---|---|
| TTrackBar | ||
| trackBar | TTrackBar | The track bar to modify. |
| action | Action<TTrackBar> | The action to perform when the Scroll event is triggered. |
Returns: TTrackBar. The modified track bar with the event handler attached.
OnValueChanged<TTrackBar>(trackBar, action)
Attaches an event handler to the ValueChanged event of the specified track bar.
| Parameter | Type | Description |
|---|---|---|
| TTrackBar | ||
| trackBar | TTrackBar | The track bar to modify. |
| action | Action<TTrackBar> | The action to perform when the ValueChanged event is triggered. |
Returns: TTrackBar. The modified track bar with the event handler attached.
Orientation<TTrackBar>(trackBar, orientation)
Sets the orientation of the specified track bar.
| Parameter | Type | Description |
|---|---|---|
| TTrackBar | ||
| trackBar | TTrackBar | The track bar to modify. |
| orientation | Orientation | The orientation to set. |
Returns: TTrackBar. The modified track bar with the updated orientation.
ShowValue<TTrackBar>(trackBar, showValue)
Configures whether the value should be displayed on the specified track bar.
| Parameter | Type | Description |
|---|---|---|
| TTrackBar | ||
| trackBar | TTrackBar | The track bar to modify. |
| showValue | Boolean | Indicates whether the value should be displayed. |
Returns: TTrackBar. The modified track bar with the updated display setting.
SmallChange<TTrackBar>(trackBar, smallChange)
Sets the small change value of the specified track bar.
| Parameter | Type | Description |
|---|---|---|
| TTrackBar | ||
| trackBar | TTrackBar | The track bar to modify. |
| smallChange | Int32 | The small change value to set. |
Returns: TTrackBar. The modified track bar with the updated small change value.
TickFrequency<TTrackBar>(trackBar, tickFrequency)
Sets the tick frequency of the specified track bar.
| Parameter | Type | Description |
|---|---|---|
| TTrackBar | ||
| trackBar | TTrackBar | The track bar to modify. |
| tickFrequency | Int32 | The tick frequency to set. |
Returns: TTrackBar. The modified track bar with the updated tick frequency.
TickStyle<TTrackBar>(trackBar, tickStyle)
Sets the tick style of the specified track bar.
| Parameter | Type | Description |
|---|---|---|
| TTrackBar | ||
| trackBar | TTrackBar | The track bar to modify. |
| tickStyle | TickStyle | The tick style to set. |
Returns: TTrackBar. The modified track bar with the updated tick style.
Value<TTrackBar>(trackBar, value)
Sets the value of the specified track bar.
| Parameter | Type | Description |
|---|---|---|
| TTrackBar | ||
| trackBar | TTrackBar | The track bar to modify. |
| value | Int32 | The value to set. |
Returns: TTrackBar. The modified track bar with the updated value.