TrackBarExtensions

Wisej.Web.Markup.TrackBarExtensions

Namespace: Wisej.Web.Markup

Assembly: Wisej.Framework (4.0.0.0)

Adds fluent markup extension methods to the TrackBar class.

public class TrackBarExtensions

Methods

Maximum<TTrackBar>(trackBar, maximum)

Sets the maximum value of the specified track bar.

Parameter
Type
Description

TTrackBar

trackBar

The track bar to modify.

maximum

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

The track bar to modify.

minimum

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

The track bar to modify.

action

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

The track bar to modify.

action

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

The track bar to modify.

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

The track bar to modify.

showValue

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

The track bar to modify.

smallChange

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

The track bar to modify.

tickFrequency

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

The track bar to modify.

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

The track bar to modify.

value

The value to set.

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

Last updated

Was this helpful?