|
using System;
namespace Storm.TextEditor.Interacting.Scrolling
{
/// <summary>
/// Represents an EventArgs inheriting class that contains information about a Scroll event.
/// </summary>
public class ScrollEventArgs
: EventArgs
{
#region Fields
private int deltaX = 0;
private int deltaY = 0;
#endregion
#region Properties
/// <summary>
/// Gets or sets the delta X property of the ScrollEventArgs.
/// </summary>
public int DeltaX
{
get { return deltaX; }
set { deltaX = value; }
}
/// <summary>
/// Gets or sets the delta Y property of the ScrollEventArgs.
/// </summary>
public int DeltaY
{
get { return deltaY; }
set { deltaY = value; }
}
#endregion
/// <summary>
/// Initializes a new instance of ScrollEventArgs.
/// </summary>
public ScrollEventArgs()
{
}
}
/// <summary>
/// EventHandler for the Scroll event.
/// </summary>
/// <param name="sender">Sender object.</param>
/// <param name="e">ScrollEventArgs.</param>
public delegate void ScrollEventHandler(object sender, ScrollEventArgs e);
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.