ScrollBarExtensions
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.1.0.0)
Adds fluent markup extension methods to the ScrollBar class.
- C#
- VB.NET
public class ScrollBarExtensions
Public Class ScrollBarExtensions
Methods
LargeChange<TScrollBar>(scrollBar, value)
Sets the LargeChange property of the specified ScrollBar.
| Parameter | Type | Description |
|---|---|---|
| TScrollBar | The type of the scroll bar, must inherit from ScrollBar. | |
| scrollBar | TScrollBar | The scroll bar for which to set the LargeChange property. |
| value | Int32 | The 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);
Maximum<TScrollBar>(scrollBar, value)
Sets the Maximum property of the specified ScrollBar.
| Parameter | Type | Description |
|---|---|---|
| TScrollBar | The type of the scroll bar, must inherit from ScrollBar. | |
| scrollBar | TScrollBar | The scroll bar for which to set the Maximum property. |
| value | Int32 | The 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);
Minimum<TScrollBar>(scrollBar, value)
Sets the Minimum property of the specified ScrollBar.
| Parameter | Type | Description |
|---|---|---|
| TScrollBar | The type of the scroll bar, must inherit from ScrollBar. | |
| scrollBar | TScrollBar | The scroll bar for which to set the Minimum property. |
| value | Int32 | The 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);
OnValueChanged<TScrollBar>(scrollBar, action)
Sets the AutoHide property of the specified ScrollBar.
| Parameter | Type | Description |
|---|---|---|
| TScrollBar | The type of the scroll bar, must inherit from ScrollBar. | |
| scrollBar | TScrollBar | The scroll bar for which to set the AutoHide property. |
| action | Action<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);
SmallChange<TScrollBar>(scrollBar, value)
Sets the SmallChange property of the specified ScrollBar.
| Parameter | Type | Description |
|---|---|---|
| TScrollBar | The type of the scroll bar, must inherit from ScrollBar. | |
| scrollBar | TScrollBar | The scroll bar for which to set the SmallChange property. |
| value | Int32 | The 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);
Value<TScrollBar>(scrollBar, value)
Sets the Value property of the specified ScrollBar.
| Parameter | Type | Description |
|---|---|---|
| TScrollBar | The type of the scroll bar, must inherit from ScrollBar. | |
| scrollBar | TScrollBar | The scroll bar for which to set the Value property. |
| value | Int32 | The 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);