Class ScrollProperties
Represents a class that holds the properties of the scrollbar.
Inheritance
Inherited Members
Namespace: Syncfusion.WinForms.Controls
Assembly: Syncfusion.Core.WinForms.dll
Syntax
public class ScrollProperties
Constructors
ScrollProperties(ScrollBarBase)
Initializes a new instance of the ScrollProperties class.
Declaration
public ScrollProperties(ScrollBarBase scrollBar)
Parameters
| Type | Name | Description |
|---|---|---|
| ScrollBarBase | scrollBar | The scrollbar. |
Properties
Enabled
Gets or sets a value indicating whether the scrollbar can be enabled.
Declaration
public bool Enabled { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
LargeChange
Gets or sets a value to be added to or subtracted from the value of the property when the scroll box is moved a large distance.
Declaration
public int LargeChange { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Maximum
Gets or sets the upper limit of values of the scrollable range.
Declaration
public int Maximum { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Minimum
Gets or sets a lower limit of values of the scrollable range.
Declaration
public int Minimum { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
ScrollBar
Gets the reference to the scrollbar.
Declaration
public Control ScrollBar { get; }
Property Value
| Type |
|---|
| System.Windows.Forms.Control |
SmallChange
Gets or sets the value to be added or subtracted from the Value property when the scroll box is moved a small distance.
Declaration
public int SmallChange { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Value
Gets or sets the numeric value that represents the current position of the scroll box on the scroll bar control.
Declaration
public int Value { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Methods
AttachScrollBar(Control)
Attach the scroll events of the given scrollbar to the scroll control.
Declaration
public void AttachScrollBar(Control scrollBar)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Forms.Control | scrollBar | The scrollbar that need to be attached. |
DetachScrollBar()
Remove the scroll events of the attached scrollbars.
Declaration
public void DetachScrollBar()
Events
Scroll
Occurs when the scrolling is done on the scrollbar.
Declaration
public event ScrollEventHandler Scroll
Event Type
| Type |
|---|
| System.Windows.Forms.ScrollEventHandler |
ValueChanged
Occurs when the value property is changed.
Declaration
public event EventHandler ValueChanged
Event Type
| Type |
|---|
| System.EventHandler |