Click here to Skip to main content
15,895,142 members
Articles / Desktop Programming / Windows Forms

Storm - the world's best IDE framework for .NET

Rate me:
Please Sign up or sign in to vote.
4.96/5 (82 votes)
4 Feb 2010LGPL311 min read 277.6K   6.5K   340  
Create fast, flexible, and extensible IDE applications easily with Storm - it takes nearly no code at all!
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.

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)



Comments and Discussions