ScrollBar
Wisej.Web.ScrollBar
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.0.0.0)
Implements the basic functionality of a scroll bar control.
C#
VB.NET
public class ScrollBar : Control
Public Class ScrollBar
Inherits Control

Constructors

​
ScrollBar()

Initializes a new instance of the ScrollBar class.

Properties

​
LargeChange

​Int32: Returns or sets a value to be added to or subtracted from the Value property when the scroll box is moved a large distance.
Throws:

​
Maximum

​Int32: Returns or sets the upper limit of values of the scrollable range.

​
Minimum

​Int32: Returns or sets the lower limit of values of the scrollable range.

​
SmallChange

​Int32: Returns or sets the value to be added to or subtracted from the Value property when the scroll box is moved a small distance.
Throws:

​
TabStop

​Boolean: Returns or sets whether the user can give the focus to this control using the TAB key and the Focusable property is set to true.

​
Value

​Int32: Returns or sets a numeric value that represents the current position of the scroll box on the scroll bar control.
Throws:

Events

​
Scroll

​ScrollEventHandler Fired when the scroll box has been moved by either a mouse or keyboard action.

​
ValueChanged

​EventHandler Fired when the Value property is changed, either by a Scroll event or programmatically.

Inherited

Properties

Name
Description
From
​AccessibleDescription​
Returns or sets the description that will be reported to accessibility client applications. It is assigned to the "alt" attribute of the browser element.
​Control​
​AccessibleName​
Returns or sets the name of the control for use by accessibility client applications. It is assigned to the "name" attribute of the browser element.
​Control​
​AccessibleRole​
Returns or sets the accessible role of the control that will be reported to accessibility client applications. It is assigned to the "role" attribute of the browser element.
​Control​
​Anchor​
Returns or sets the edges of the container to which a control is bound and determines how a control is resized with its parent.
​Control​
​Anonymous​
Returns or sets whether the control receives pointer events. Anonymous controls let pointer events bubble to their parents.
​Control​
​AppearanceKey​
Sets the appearance key for the theme engine.
​Control​
​BecomingActiveControl​
Returns a flag indicating that the control is becoming the active control.
​Control​
​BindingContext​
Returns or sets the BindingContext for the control.
​Control​
​Bottom​
Returns the distance, in pixels, between the bottom edge of the control and the top edge of its container's client area.
​Control​
​Bounds​
Returns or sets the size and location of the control including its non-client area, in pixels and relative to the parent control.
​Control​
​CanExecute​
Determines whether the control can execute a command.
​Control​
​CanFocus​
Returns whether the control can receive focus.
​Control​
​CanSelect​
Returns whether the control can be selected.
​Control​
​Capture​
Returns or sets whether the control has captured the mouse.
​Control​
​CausesValidation​
Returns or sets whether the control causes validation to be performed on controls that require to be validated when this control receives focus.
​Control​
​ClientEvents​
Returns a collection of client events and JavaScript listeners. You may attach multiple listeners to same event.
​Control​
​ClientRectangle​
Returns the client rectangle of the control.
​Control​
​ClientSize​
Returns or sets the height and width of the client area.
​Control​
​ContainsFocus​
Indicates whether the control, or one of its child controls, has the input focus.
​Control​
​Controls​
Returns the collection of controls contained within the control.
​Control​

Methods

Name
Description
From
Adds a new listener script to the event name to the client widget.
​Control​
​AddCssClass(name)​
Adds the CSS class name to the widget element. If the class already exists in the CssClass it's not added.
​Control​
​AddState(state)​
Adds the specified theme state to the widget.
​Control​
​BeginInvoke(method)​
Executes the specified delegate asynchronously.
​Control​
Executes the specified delegate asynchronously.
​Control​
​BringToFront()​
Brings the control to the front of the z-order.
​Control​
​Call(function, args)​
Runs the JavaScript function within the component's context in the browser.
​Control​
Runs the JavaScript function within the component's context in the browser and returns the value to the callback method.
​Control​
Asynchronously runs the JavaScript function within the component's context in the browser and returns an awaitable Task containing the value returned by the remote call.
​Control​
​CenterToParent()​
Centers the position of the control within the bounds of the parent.
​Control​
Centers the position of the control within the bounds of the parent either horizontally, vertically or both.
​Control​
​Contains(control)​
Indicates whether the specified control is a child of this control.
​Control​
​CreateControl()​
Creates and register this control and all its children.
​Control​
Begins a drag-and-drop operation.
​Control​
Begins a drag-and-drop operation.
​Control​
Begins a drag-and-drop operation.
​Control​
Begins a drag-and-drop operation.
​Control​
Begins a drag-and-drop operation.
​Control​
​EndInvoke(asyncResult)​
Retrieves the return value from the asynchronous operation represented by asyncResult .
​Control​
​Eval(javaScript)​
Runs the javaScript code within the component's context in the browser.
​Control​

Events

Name
Description
From
​Appear​
Fired after the control has been fully rendered on the client.
​Control​
Fired when the value of the BecomingActiveControl property changes.
​Control​
​BindingContextChanged​
Occurs when the value of the BindingContext property changes.
​Control​
​CausesValidationChanged​
Fired when the value of the CausesValidation property changes.
​Control​
​Click​
Fired when the control is clicked.
​Control​
​ClientSizeChanged​
Fired when the ClientSize property value changes.
​Control​
​ContextMenuChanged​
Fired when the value of the ContextMenu property changes.
​Control​
​ControlAdded​
Fired when a new control is added to the ControlCollection.
​Control​
​ControlCreated​
Fired when a control is made visible the first time, fully created and sent to the client.
​Control​
​ControlRemoved​
Fired when a control is removed from the ControlCollection.
​Control​
​CursorChanged​
Fired when the value of the Cursor property changes.
​Control​
​Disappear​
Fired after the control is no longer visible on the client.
​Control​
​Disposed​
Fired when the component is disposed.
​Control​
​DockChanged​
Fired when the value of the Dock property changes.
​Control​
​DoubleClick​
Fired when the control is double-clicked.
​Control​
​DragDrop​
Fired when a drag-and-drop operation is completed.
​Control​
​DragEnd​
Fired when a drag-drop operation is terminated either by a drop or canceled.
​Control​
​DragEnter​
Fired when an object is dragged into the control's bounds.
​Control​
​DragLeave​
Fired when an object is dragged out of the control's bounds.
​Control​
​DragOver​
Fired when an object is dragged over the control's bounds.
​Control​

Extension Methods

Name
Description
From
Sounds a tone through the computer's speaker.
​Interaction​
Displays a prompt in a dialog box, waits for the user to input text or click a button, and then returns a string containing the contents of the text box.
​Interaction​
Asynchronous displays a prompt in a dialog box, waits for the user to input text or click a button, and then returns a string containing the contents of the text box.
​Interaction​
Displays a message in a dialog box, waits for the user to click a button, and then returns an integer indicating which button the user clicked.
​Interaction​
Asynchronously displays a message in a dialog box, waits for the user to click a button, and then returns an integer indicating which button the user clicked.
​Interaction​
​ToJSON(obj, formatted)​
Serializes the object to a JSON string.
​JSON​
​ToJSON(obj, options)​
Serializes the object to a JSON string.
​JSON​

Inherited By

Name
Description
​HScrollBar​
Represents an horizontal scroll bar.
​VScrollBar​
Represents a vertical scroll bar.

Implements

Name
Description
​IBindableComponent​
Bindable components implement this interface.
​IWisejComponent​
All wisej components implement this interface.
​IWisejControl​
All wisej controls derived from the Control class must implement this interface.
​IWisejSerializable​
Allows an object to serialize itself.