File: winforms\Managed\System\WinForms\ToolStripItemClickedEventArgs.cs
Project: ndp\fx\src\System.Windows.Forms.csproj (System.Windows.Forms)
//------------------------------------------------------------------------------
// <copyright file="ToolStripItemClickedEventArgs.cs" company="Microsoft">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>                                                                
//------------------------------------------------------------------------------
 
namespace System.Windows.Forms {
 
    /// <include file='doc\ToolStripItemClickedEventArgs.uex' path='docs/doc[@for="ToolStripItemClickedEventArgs"]/*' />
    public class ToolStripItemClickedEventArgs : EventArgs {
        private ToolStripItem  clickedItem = null;
 
        /// <include file='doc\ToolStripItemClickedEventArgs.uex' path='docs/doc[@for="ToolStripItemClickedEventArgs.ToolStripItemClickedEventArgs"]/*' />
        /// <devdoc>
        /// This class represents event args a ToolStrip can use when an item has been clicked.
        /// </devdoc>
        public ToolStripItemClickedEventArgs(ToolStripItem clickedItem) {
 
            this.clickedItem = clickedItem;
        }
 
 
        /// <include file='doc\ToolStripItemClickedEventArgs.uex' path='docs/doc[@for="ToolStripItemClickedEventArgs.ClickedItem"]/*' />
        /// <devdoc>
        /// Represents the item that was clicked on the toolStrip.
        /// </devdoc>
        public ToolStripItem ClickedItem {
            get {
                return clickedItem;    
            }
        }
 
    }
}