menu

WinForms

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

    Show / Hide Table of Contents

    Class ScrollWindowEventArgs

    Contains data for the WindowScrolling and WindowScrolled event.

    Inheritance
    System.Object
    System.EventArgs
    SyncfusionEventArgs
    ScrollWindowEventArgs
    Inherited Members
    System.EventArgs.Empty
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Syncfusion.Windows.Forms
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public sealed class ScrollWindowEventArgs : SyncfusionEventArgs
    Remarks

    ScrollWindow will raise a WindowScrolling event before it scrolls the window and a WindowScrolled event after the scrolling.

    Constructors

    ScrollWindowEventArgs(Int32, Int32, Rectangle, Rectangle, Rectangle)

    Initializes a new ScrollWindowEventArgs.

    Declaration
    public ScrollWindowEventArgs(int xAmount, int yAmount, Rectangle rect, Rectangle clipRect, Rectangle updateRect)
    Parameters
    Type Name Description
    System.Int32 xAmount

    The horizontal scroll distance in pixel.

    System.Int32 yAmount

    The vertical scroll distance in pixel.

    System.Drawing.Rectangle rect

    The bounds of the rectangle that is scrolled.

    System.Drawing.Rectangle clipRect

    Clipping rectangle.

    System.Drawing.Rectangle updateRect

    The rectangle that was scrolled into view.

    Properties

    ClipRect

    Returns the Clipping rectangle.

    Declaration
    [TraceProperty(true)]
    public Rectangle ClipRect { get; }
    Property Value
    Type
    System.Drawing.Rectangle

    Rect

    Returns the bounds of the rectangle that is scrolled.

    Declaration
    [TraceProperty(true)]
    public Rectangle Rect { get; }
    Property Value
    Type
    System.Drawing.Rectangle

    UpdateRect

    Returns the rectangle that was scrolled into view.

    Declaration
    [TraceProperty(true)]
    public Rectangle UpdateRect { get; }
    Property Value
    Type
    System.Drawing.Rectangle

    XAmount

    Returns the horizontal scroll distance in pixels.

    Declaration
    [TraceProperty(true)]
    public int XAmount { get; }
    Property Value
    Type
    System.Int32

    YAmount

    Returns the vertical scroll distance in pixels.

    Declaration
    [TraceProperty(true)]
    public int YAmount { get; }
    Property Value
    Type
    System.Int32

    Methods

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type
    System.String
    Overrides
    SyncfusionEventArgs.ToString()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved