WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class VerticalScrollBar - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class VerticalScrollBar

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

    Inheritance
    System.Object
    ScrollBarBase
    VerticalScrollBar
    Inherited Members
    ScrollBarBase.InvalidateScrollBar()
    ScrollBarBase.IsRightToLeft()
    ScrollBarBase.Dispose(Boolean)
    ScrollBarBase.OnLayout(LayoutEventArgs)
    ScrollBarBase.CreateAccessibilityInstance()
    ScrollBarBase.OnPaint(PaintEventArgs)
    ScrollBarBase.DrawArrow(Graphics, Rectangle, ScrollButton, ButtonState, ScrollBarStyleInfo)
    ScrollBarBase.DrawScrollBarBackground(Graphics, Rectangle, ButtonState, ScrollBarStyleInfo)
    ScrollBarBase.DrawThumbBackground(Graphics, Rectangle, ButtonState, ScrollBarStyleInfo)
    ScrollBarBase.OnSizeChanged(EventArgs)
    ScrollBarBase.OnValueChanged(EventArgs)
    ScrollBarBase.OnMouseDown(MouseEventArgs)
    ScrollBarBase.OnRightToLeftChanged(EventArgs)
    ScrollBarBase.OnMouseUp(MouseEventArgs)
    ScrollBarBase.OnMouseEnter(EventArgs)
    ScrollBarBase.OnMouseMove(MouseEventArgs)
    ScrollBarBase.OnMouseLeave(EventArgs)
    ScrollBarBase.GetMinButton()
    ScrollBarBase.GetMaxButton()
    ScrollBarBase.OnScroll(ScrollEventArgs)
    ScrollBarBase.OnMinimumClick(Object, EventArgs)
    ScrollBarBase.OnMaximumClick(Object, EventArgs)
    ScrollBarBase.OnScrollUpLeftClick(Object, EventArgs)
    ScrollBarBase.OnScrollDownRightClick(Object, EventArgs)
    ScrollBarBase.InitializeContextMenu(ContextMenu)
    ScrollBarBase.LargeChange
    ScrollBarBase.Maximum
    ScrollBarBase.Minimum
    ScrollBarBase.SmallChange
    ScrollBarBase.Value
    ScrollBarBase.EnableThumb
    ScrollBarBase.EnableMinimumArrow
    ScrollBarBase.EnableMaximumArrow
    ScrollBarBase.Style
    ScrollBarBase.AccessibilityEnabled
    ScrollBarBase.ValueChanged
    ScrollBarBase.Scroll
    ScrollBarBase.ContextMenuShowing
    Namespace: Syncfusion.WinForms.Controls
    Assembly: Syncfusion.Core.WinForms.dll
    Syntax
    public class VerticalScrollBar : ScrollBarBase

    Constructors

    VerticalScrollBar()

    Initializes a new instance of the VerticalScrollBar class.

    Declaration
    public VerticalScrollBar()

    VerticalScrollBar(ScrollBarStyleInfo)

    Initializes a new instance of the VerticalScrollBar class.

    Declaration
    public VerticalScrollBar(ScrollBarStyleInfo style)
    Parameters
    Type Name Description
    ScrollBarStyleInfo style

    The ScrollBarStyleInfo for the vertical scrollbar.

    Properties

    DefaultSize

    Gets the default size of the vertical scrollbar.

    Declaration
    protected override Size DefaultSize { get; }
    Property Value
    Type Description
    System.Drawing.Size

    Methods

    CalculateThumbDelta(Int32, Int32)

    Calculates the delta value in vertical co-ordinates.

    Declaration
    protected override void CalculateThumbDelta(int x, int y)
    Parameters
    Type Name Description
    System.Int32 x

    The X position of the cursor.

    System.Int32 y

    The y position of the cursor.

    Overrides
    ScrollBarBase.CalculateThumbDelta(Int32, Int32)

    GetStyle()

    Gets the style of the ScrollBarStyleInfo

    Declaration
    protected override ScrollBarStyleInfo GetStyle()
    Returns
    Type Description
    ScrollBarStyleInfo

    Returns the ScrollControl' vertical scrollbar style.

    Overrides
    ScrollBarBase.GetStyle()

    InvalidateArrowRegion()

    Invalidates the Arrow location.

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

    InvalidateThumbRegion()

    Invalidates the scrollbar thumb location.

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

    OnPageDownRightClick(Object, EventArgs)

    Occurs while clicking the ScrollDown option from the context menu.

    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 option from the context menu.

    Declaration
    protected override void OnPageUpLeftClick(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.OnPageUpLeftClick(Object, EventArgs)

    OnScrollHereClick(Object, EventArgs)

    Occurs while clicking the ScrollHere option from the context menu.

    Declaration
    protected override void OnScrollHereClick(object sender, EventArgs e)
    Parameters
    Type Name Description
    System.Object sender

    The sender of the object.

    System.EventArgs e

    An System.EventArgs that contains event data.

    Overrides
    ScrollBarBase.OnScrollHereClick(Object, EventArgs)

    OnThumbPositionChanged(Int32, Int32)

    Calculates the thumb position on moving the cursor over the scrollbar.

    Declaration
    protected override void OnThumbPositionChanged(int x, int y)
    Parameters
    Type Name Description
    System.Int32 x

    The X co-ordinate of the cursor.

    System.Int32 y

    The Y co-ordinate of the cursor.

    Overrides
    ScrollBarBase.OnThumbPositionChanged(Int32, Int32)

    PointToValue(Int32, Int32)

    Gets the value of the vertical scrollbar at the given cursor position.

    Declaration
    protected override int PointToValue(int x, int y)
    Parameters
    Type Name Description
    System.Int32 x

    The x co-ordinate of the cursor.

    System.Int32 y

    The y co-ordinate of the cursor.

    Returns
    Type Description
    System.Int32

    Returns the value of the given co-ordinates.

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