Skip to main content
Version: 4.1

TrackBarExtensions

Namespace: Wisej.Web.Markup

Assembly: Wisej.Framework (4.1.0.0)

Adds fluent markup extension methods to the TrackBar class.

public class TrackBarExtensions

Methods

Static member Maximum<TTrackBar>(trackBar, maximum)

Sets the maximum value of the specified track bar.

ParameterTypeDescription
TTrackBar
trackBarTTrackBarThe track bar to modify.
maximumInt32The maximum value to set.

Returns: TTrackBar. The modified track bar with the updated maximum value.

Static member Minimum<TTrackBar>(trackBar, minimum)

Sets the minimum value of the specified track bar.

ParameterTypeDescription
TTrackBar
trackBarTTrackBarThe track bar to modify.
minimumInt32The minimum value to set.

Returns: TTrackBar. The modified track bar with the updated minimum value.

Static member OnScroll<TTrackBar>(trackBar, action)

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

ParameterTypeDescription
TTrackBar
trackBarTTrackBarThe track bar to modify.
actionAction<TTrackBar>The action to perform when the Scroll event is triggered.

Returns: TTrackBar. The modified track bar with the event handler attached.

Static member OnValueChanged<TTrackBar>(trackBar, action)

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

ParameterTypeDescription
TTrackBar
trackBarTTrackBarThe track bar to modify.
actionAction<TTrackBar>The action to perform when the ValueChanged event is triggered.

Returns: TTrackBar. The modified track bar with the event handler attached.

Static member Orientation<TTrackBar>(trackBar, orientation)

Sets the orientation of the specified track bar.

ParameterTypeDescription
TTrackBar
trackBarTTrackBarThe track bar to modify.
orientationOrientationThe orientation to set.

Returns: TTrackBar. The modified track bar with the updated orientation.

Static member ShowValue<TTrackBar>(trackBar, showValue)

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

ParameterTypeDescription
TTrackBar
trackBarTTrackBarThe track bar to modify.
showValueBooleanIndicates whether the value should be displayed.

Returns: TTrackBar. The modified track bar with the updated display setting.

Static member SmallChange<TTrackBar>(trackBar, smallChange)

Sets the small change value of the specified track bar.

ParameterTypeDescription
TTrackBar
trackBarTTrackBarThe track bar to modify.
smallChangeInt32The small change value to set.

Returns: TTrackBar. The modified track bar with the updated small change value.

Static member TickFrequency<TTrackBar>(trackBar, tickFrequency)

Sets the tick frequency of the specified track bar.

ParameterTypeDescription
TTrackBar
trackBarTTrackBarThe track bar to modify.
tickFrequencyInt32The tick frequency to set.

Returns: TTrackBar. The modified track bar with the updated tick frequency.

Static member TickStyle<TTrackBar>(trackBar, tickStyle)

Sets the tick style of the specified track bar.

ParameterTypeDescription
TTrackBar
trackBarTTrackBarThe track bar to modify.
tickStyleTickStyleThe tick style to set.

Returns: TTrackBar. The modified track bar with the updated tick style.

Static member Value<TTrackBar>(trackBar, value)

Sets the value of the specified track bar.

ParameterTypeDescription
TTrackBar
trackBarTTrackBarThe track bar to modify.
valueInt32The value to set.

Returns: TTrackBar. The modified track bar with the updated value.