Class VerticalScrollBar
Represents a class that is used to draw the vertical scrollbar of the scroll control.
Inherited Members
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 |
---|
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
GetStyle()
Gets the style of the ScrollBarStyleInfo
Declaration
protected override ScrollBarStyleInfo GetStyle()
Returns
Type | Description |
---|---|
ScrollBarStyleInfo | Returns the ScrollControl' vertical scrollbar style. |
Overrides
InvalidateArrowRegion()
Invalidates the Arrow location.
Declaration
protected override void InvalidateArrowRegion()
Overrides
InvalidateThumbRegion()
Invalidates the scrollbar thumb location.
Declaration
protected override void InvalidateThumbRegion()
Overrides
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
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
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
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
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. |