menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class HorizontalScrollBar - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class HorizontalScrollBar

    Represents a class that is used to draw the horizontal scrollbar of the scroll control.

    Inheritance
    System.Object
    ScrollBarBase
    HorizontalScrollBar
    Inherited Members
    ScrollBarBase.AccessibilityEnabled
    ScrollBarBase.ContextMenuShowing
    ScrollBarBase.CreateAccessibilityInstance()
    ScrollBarBase.Dispose(Boolean)
    ScrollBarBase.DrawArrow(Graphics, Rectangle, ScrollButton, ButtonState, ScrollBarStyleInfo)
    ScrollBarBase.DrawScrollBarBackground(Graphics, Rectangle, ButtonState, ScrollBarStyleInfo)
    ScrollBarBase.DrawThumbBackground(Graphics, Rectangle, ButtonState, ScrollBarStyleInfo)
    ScrollBarBase.EnableMaximumArrow
    ScrollBarBase.EnableMinimumArrow
    ScrollBarBase.EnableThumb
    ScrollBarBase.Font
    ScrollBarBase.InitializeContextMenu(ContextMenuStrip)
    ScrollBarBase.InvalidateScrollBar()
    ScrollBarBase.IsRightToLeft()
    ScrollBarBase.LargeChange
    ScrollBarBase.Maximum
    ScrollBarBase.Minimum
    ScrollBarBase.OnLayout(LayoutEventArgs)
    ScrollBarBase.OnMaximumClick(Object, EventArgs)
    ScrollBarBase.OnMinimumClick(Object, EventArgs)
    ScrollBarBase.OnMouseDown(MouseEventArgs)
    ScrollBarBase.OnMouseEnter(EventArgs)
    ScrollBarBase.OnMouseLeave(EventArgs)
    ScrollBarBase.OnMouseMove(MouseEventArgs)
    ScrollBarBase.OnMouseUp(MouseEventArgs)
    ScrollBarBase.OnPaint(PaintEventArgs)
    ScrollBarBase.OnRightToLeftChanged(EventArgs)
    ScrollBarBase.OnScroll(ScrollEventArgs)
    ScrollBarBase.OnScrollDownRightClick(Object, EventArgs)
    ScrollBarBase.OnScrollUpLeftClick(Object, EventArgs)
    ScrollBarBase.OnSizeChanged(EventArgs)
    ScrollBarBase.OnValueChanged(EventArgs)
    ScrollBarBase.Scroll
    ScrollBarBase.SmallChange
    ScrollBarBase.Style
    ScrollBarBase.Value
    ScrollBarBase.ValueChanged
    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
    ScrollBarBase.CalculateThumbDelta(Int32, Int32)

    GetMaxButton()

    Gets the maximum button.

    Declaration
    protected override ScrollButton GetMaxButton()
    Returns
    Type Description
    System.Windows.Forms.ScrollButton

    Returns the maximum scroll button.

    Overrides
    ScrollBarBase.GetMaxButton()

    GetMinButton()

    Gets the Minimum scroll button.

    Declaration
    protected override ScrollButton GetMinButton()
    Returns
    Type Description
    System.Windows.Forms.ScrollButton

    Returns the minimum scroll button.

    Overrides
    ScrollBarBase.GetMinButton()

    GetStyle()

    Gets the style of the ScrollBarStyleInfo

    Declaration
    protected override ScrollBarStyleInfo GetStyle()
    Returns
    Type Description
    ScrollBarStyleInfo

    Returns the ScrollControl' horizontal scrollbar style.

    Overrides
    ScrollBarBase.GetStyle()

    InvalidateArrowRegion()

    Recalculates the arrow positions of the scrollbar.

    Declaration
    protected override void InvalidateArrowRegion()
    Overrides
    ScrollBarBase.InvalidateArrowRegion()

    InvalidateThumbRegion()

    Recalculates the thumb positions of the scrollbar.

    Declaration
    protected override void InvalidateThumbRegion()
    Overrides
    ScrollBarBase.InvalidateThumbRegion()

    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
    ScrollBarBase.OnPageDownRightClick(Object, EventArgs)

    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
    ScrollBarBase.OnPageUpLeftClick(Object, EventArgs)

    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
    ScrollBarBase.OnScrollHereClick(Object, EventArgs)

    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
    ScrollBarBase.OnThumbPositionChanged(Int32, Int32)

    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.

    Overrides
    ScrollBarBase.PointToValue(Int32, Int32)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved