ScrollableControlExtensions
Wisej.Web.Markup.ScrollableControlExtensions
Last updated
Was this helpful?
Wisej.Web.Markup.ScrollableControlExtensions
Last updated
Was this helpful?
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.0.0.0)
Adds extension methods to the class.
Sets the AutoScroll property for the specified , enabling or disabling automatic scrolling.
TControl
control
The scrollable control for which to set the AutoScroll property.
autoScroll
A boolean value indicating whether to enable automatic scrolling. Default is false
.
Returns: . The scrollable control with the updated AutoScroll property.
This method allows you to control whether the control automatically displays scroll bars when its contents exceed its visible boundaries.
TControl
control
The control for which to set the AutoScrollMargin property.
autoScrollMargin
This method allows you to specify the margin around the scrollable area of the control.
TControl
control
The control for which to set the AutoScrollMinSize property.
autoScrollMinSize
This method allows you to specify the minimum size of the scrollable area of the control.
TControl
The type of the scrollable control.
control
The control to which the scroll event handler is attached.
action
The action to perform when the scroll event is triggered.
This method allows you to easily attach a scroll event handler to a scrollable control. The provided action is executed whenever the scroll event occurs.
TControl
control
The control for which to set the ScrollBars property.
scrollBars
This method allows you to specify which scroll bars are displayed for the control. This is assumed to be part of a custom implementation.
The type of the control, which must inherit from .
Sets the AutoScrollMargin property of the specified .
The type of the control, must inherit from .
A representing the scroll margin.
Returns: . The modified control with the updated AutoScrollMargin property.
Sets the AutoScrollMinSize property of the specified .
The type of the control, must inherit from .
A representing the minimum scrollable size.
Returns: . The modified control with the updated AutoScrollMinSize property.
Attaches a scroll event handler to a .
Returns: . The control with the attached scroll event handler.
Sets the ScrollBars property of the specified .
The type of the control, must inherit from .
A value indicating which scroll bars to display.
Returns: . The modified control with the updated ScrollBars property.