using System; using System.Windows.Forms; namespace DevComponents.AdvTree { /// /// Represents event arguments for node mouse based events. /// public class TreeNodeMouseEventArgs:EventArgs { public TreeNodeMouseEventArgs(Node node, MouseButtons button, int clicks, int delta, int x, int y) { this.Node = node; this.Button = button; this.Clicks = clicks; this.Delta = delta; this.X = x; this.Y = y; } /// /// Gets node affected by mouse action. /// public readonly Node Node; /// /// Gets which mouse button was pressed. /// public readonly MouseButtons Button; /// /// Gets the number of times the mouse button was pressed and released. /// public readonly int Clicks; /// /// Gets a signed count of the number of detents the mouse wheel has rotated. A detent is one notch of the mouse wheel. /// public readonly int Delta; /// /// Gets the x-coordinate of the mouse. /// public readonly int X; /// /// Gets the y-coordinate of the mouse. /// public readonly int Y; } }