File: winforms\Managed\System\WinForms\StatusBarPanelClickEvent.cs
Project: ndp\fx\src\System.Windows.Forms.csproj (System.Windows.Forms)
//------------------------------------------------------------------------------
// <copyright file="StatusBarPanelClickEvent.cs" company="Microsoft">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>                                                                
//------------------------------------------------------------------------------
 
/*
 */
namespace System.Windows.Forms {
 
    using System.Diagnostics;
 
    using System;
    using System.Drawing;
    using System.ComponentModel;
    using Microsoft.Win32;
 
    /// <include file='doc\StatusBarPanelClickEvent.uex' path='docs/doc[@for="StatusBarPanelClickEventArgs"]/*' />
    /// <devdoc>
    ///    <para>
    ///       Provides data for the <see cref='System.Windows.Forms.StatusBar.OnPanelClick'/>
    ///       event.
    ///    </para>
    /// </devdoc>
    public class StatusBarPanelClickEventArgs : MouseEventArgs {
 
        readonly StatusBarPanel statusBarPanel;
 
 
        /// <include file='doc\StatusBarPanelClickEvent.uex' path='docs/doc[@for="StatusBarPanelClickEventArgs.StatusBarPanelClickEventArgs"]/*' />
        /// <devdoc>
        ///    <para>
        ///       Initializes a new instance of the <see cref='System.Windows.Forms.StatusBarPanelClickEventArgs'/>
        ///       class.
        ///    </para>
        /// </devdoc>
        public StatusBarPanelClickEventArgs(StatusBarPanel statusBarPanel, MouseButtons button, int clicks, int x, int y)
            : base(button, clicks, x, y, 0) {
            this.statusBarPanel = statusBarPanel;
        }
 
        /// <include file='doc\StatusBarPanelClickEvent.uex' path='docs/doc[@for="StatusBarPanelClickEventArgs.StatusBarPanel"]/*' />
        /// <devdoc>
        ///    <para>
        ///       Specifies the <see cref='System.Windows.Forms.StatusBarPanel'/> that represents the clicked panel.
        ///    </para>
        /// </devdoc>
        public StatusBarPanel StatusBarPanel {
            get {
                return statusBarPanel;
            }
        }
    }
}