Skip to main content
Version: 4.1

ScrollBarExtensions

Namespace: Wisej.Web.Markup

Assembly: Wisej.Framework (4.1.0.0)

Adds fluent markup extension methods to the ScrollBar class.

public class ScrollBarExtensions

Methods

Static member LargeChange<TScrollBar>(scrollBar, value)

Sets the LargeChange property of the specified ScrollBar.

ParameterTypeDescription
TScrollBarThe type of the scroll bar, must inherit from ScrollBar.
scrollBarTScrollBarThe scroll bar for which to set the LargeChange property.
valueInt32The value to set for the large increment of the scroll bar.

Returns: TScrollBar. The modified scroll bar with the updated LargeChange property.

This method allows you to specify the amount by which the scroll box moves in response to a large scroll command.


myScrollBar.LargeChange(10);

Static member Maximum<TScrollBar>(scrollBar, value)

Sets the Maximum property of the specified ScrollBar.

ParameterTypeDescription
TScrollBarThe type of the scroll bar, must inherit from ScrollBar.
scrollBarTScrollBarThe scroll bar for which to set the Maximum property.
valueInt32The maximum value for the scroll bar.

Returns: TScrollBar. The modified scroll bar with the updated Maximum property.

This method allows you to specify the maximum value of the scroll bar.


myScrollBar.Maximum(100);

Static member Minimum<TScrollBar>(scrollBar, value)

Sets the Minimum property of the specified ScrollBar.

ParameterTypeDescription
TScrollBarThe type of the scroll bar, must inherit from ScrollBar.
scrollBarTScrollBarThe scroll bar for which to set the Minimum property.
valueInt32The minimum value for the scroll bar.

Returns: TScrollBar. The modified scroll bar with the updated Minimum property.

This method allows you to specify the minimum value of the scroll bar.


myScrollBar.Minimum(0);

Static member OnValueChanged<TScrollBar>(scrollBar, action)

Sets the AutoHide property of the specified ScrollBar.

ParameterTypeDescription
TScrollBarThe type of the scroll bar, must inherit from ScrollBar.
scrollBarTScrollBarThe scroll bar for which to set the AutoHide property.
actionAction<TScrollBar>Event handler.

Returns: TScrollBar. The modified scroll bar with the updated AutoHide property.

This method allows you to specify whether the scroll bar should automatically hide when not in use.


myScrollBar.AutoHide(true);

Static member SmallChange<TScrollBar>(scrollBar, value)

Sets the SmallChange property of the specified ScrollBar.

ParameterTypeDescription
TScrollBarThe type of the scroll bar, must inherit from ScrollBar.
scrollBarTScrollBarThe scroll bar for which to set the SmallChange property.
valueInt32The value to set for the small increment of the scroll bar.

Returns: TScrollBar. The modified scroll bar with the updated SmallChange property.

This method allows you to specify the amount by which the scroll box moves in response to a small scroll command.


myScrollBar.SmallChange(1);

Static member Value<TScrollBar>(scrollBar, value)

Sets the Value property of the specified ScrollBar.

ParameterTypeDescription
TScrollBarThe type of the scroll bar, must inherit from ScrollBar.
scrollBarTScrollBarThe scroll bar for which to set the Value property.
valueInt32The value to set for the scroll bar's position.

Returns: TScrollBar. The modified scroll bar with the updated Value property.

This method allows you to specify the current position of the scroll box on the scroll bar.


myScrollBar.Value(50);