Class HorizontalScrollBar
Represents a class that is used to draw the horizontal scrollbar of the scroll control.
Inherited Members
Namespace: Syncfusion.WinForms.Controls
Assembly: Syncfusion.Core.WinForms.dll
Syntax
public class HorizontalScrollBar : ScrollBarBase
Constructors
HorizontalScrollBar()
Initializes a new instance of the HorizontalScrollBar class.
Declaration
public HorizontalScrollBar()
HorizontalScrollBar(ScrollBarStyleInfo)
Initializes a new instance of the HorizontalScrollBar class.
Declaration
public HorizontalScrollBar(ScrollBarStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
ScrollBarStyleInfo | style | The ScrollBarStyleInfo for the horizontal scrollbar. |
Properties
DefaultSize
Gets the default size of the horizontal scrollbar.
Declaration
protected override Size DefaultSize { get; }
Property Value
Type |
---|
System.Drawing.Size |
Methods
CalculateThumbDelta(Int32, Int32)
Calculates the delta value of x.
Declaration
protected override void CalculateThumbDelta(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | The x position of the mouse cursor. |
System.Int32 | y | The y position of the mouse cursor. |
Overrides
GetMaxButton()
Gets the maximum button.
Declaration
protected override ScrollButton GetMaxButton()
Returns
Type | Description |
---|---|
System.Windows.Forms.ScrollButton | Returns the maximum scroll button. |
Overrides
GetMinButton()
Gets the Minimum scroll button.
Declaration
protected override ScrollButton GetMinButton()
Returns
Type | Description |
---|---|
System.Windows.Forms.ScrollButton | Returns the minimum scroll button. |
Overrides
GetStyle()
Gets the style of the ScrollBarStyleInfo
Declaration
protected override ScrollBarStyleInfo GetStyle()
Returns
Type | Description |
---|---|
ScrollBarStyleInfo | Returns the ScrollControl' horizontal scrollbar style. |
Overrides
InvalidateArrowRegion()
Recalculates the arrow positions of the scrollbar.
Declaration
protected override void InvalidateArrowRegion()
Overrides
InvalidateThumbRegion()
Recalculates the thumb positions of the scrollbar.
Declaration
protected override void InvalidateThumbRegion()
Overrides
OnPageDownRightClick(Object, EventArgs)
Occurs while clicking on the PageDown or Right menu items.
Declaration
protected override void OnPageDownRightClick(object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The sender of the event. |
System.EventArgs | e | An System.EventArgs that contains event data. |
Overrides
OnPageUpLeftClick(Object, EventArgs)
Occurs while clicking the PageUp or Left menu items.
Declaration
protected override void OnPageUpLeftClick(object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The sender of the event. |
System.EventArgs | e | The System.EventArgs that contains event data. |
Overrides
OnScrollHereClick(Object, EventArgs)
Occurs while clicking the ScrollHere menu item.
Declaration
protected override void OnScrollHereClick(object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The object of the sender. |
System.EventArgs | e | An System.EventArgs that contains event data. |
Overrides
OnThumbPositionChanged(Int32, Int32)
Occurs while moving the mouse position on the scrollbar.
Declaration
protected override void OnThumbPositionChanged(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | The location of the x co-ordinate. |
System.Int32 | y | The location of the y co-ordinate. |
Overrides
PointToValue(Int32, Int32)
Gets value by cursor position.
Declaration
protected override int PointToValue(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | The x position of the scrollbar. |
System.Int32 | y | The y position of the scrollbar. |
Returns
Type | Description |
---|---|
System.Int32 | Returns the value of the given point. |