WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ScrollProperties

    Show / Hide Table of Contents

    Class ScrollProperties

    Represents a class that holds the properties of the scrollbar.

    Inheritance
    System.Object
    ScrollProperties
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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 Description
    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 Description
    System.Int32

    Maximum

    Gets or sets the upper limit of values of the scrollable range.

    Declaration
    public int Maximum { get; set; }
    Property Value
    Type Description
    System.Int32

    Minimum

    Gets or sets a lower limit of values of the scrollable range.

    Declaration
    public int Minimum { get; set; }
    Property Value
    Type Description
    System.Int32

    ScrollBar

    Gets the reference to the scrollbar.

    Declaration
    public Control ScrollBar { get; }
    Property Value
    Type Description
    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 Description
    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 Description
    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 Description
    System.Windows.Forms.ScrollEventHandler

    ValueChanged

    Occurs when the value property is changed.

    Declaration
    public event EventHandler ValueChanged
    Event Type
    Type Description
    System.EventHandler
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved