File: System\Windows\Forms\Input\HandledMouseEventArgs.cs
Web Access
Project: src\src\System.Windows.Forms\src\System.Windows.Forms.csproj (System.Windows.Forms)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace System.Windows.Forms;
 
public class HandledMouseEventArgs : MouseEventArgs
{
    public HandledMouseEventArgs(MouseButtons button, int clicks, int x, int y, int delta)
        : this(button, clicks, x, y, delta, false)
    {
    }
 
    internal HandledMouseEventArgs(MouseButtons button, int clicks, Point location, int delta)
        : this(button, clicks, location.X, location.Y, delta, false)
    {
    }
 
    public HandledMouseEventArgs(MouseButtons button, int clicks, int x, int y, int delta, bool defaultHandledValue)
        : base(button, clicks, x, y, delta)
    {
        Handled = defaultHandledValue;
    }
 
    /// <summary>
    ///  Gets or sets a value indicating whether the event is handled.
    /// </summary>
    public bool Handled { get; set; }
}