ScrollBarExtensions
Wisej.Web.Markup.ScrollBarExtensions
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.0.0.0)
Adds fluent markup extension methods to the ScrollBar class.
public class ScrollBarExtensions
Methods
LargeChange<TScrollBar>(scrollBar, value)

Sets the LargeChange property of the specified ScrollBar.
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);
Maximum<TScrollBar>(scrollBar, value)

Sets the Maximum property of the specified ScrollBar.
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);
Minimum<TScrollBar>(scrollBar, value)

Sets the Minimum property of the specified ScrollBar.
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);
OnValueChanged<TScrollBar>(scrollBar, action)

Sets the AutoHide property of the specified ScrollBar.
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);
SmallChange<TScrollBar>(scrollBar, value)

Sets the SmallChange property of the specified ScrollBar.
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);
Value<TScrollBar>(scrollBar, value)

Sets the Value property of the specified ScrollBar.
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);
Last updated
Was this helpful?