File: winforms\Managed\System\WinForms\ToolStripLocationCancelEventArgs.cs
Project: ndp\fx\src\System.Windows.Forms.csproj (System.Windows.Forms)
//------------------------------------------------------------------------------
// <copyright file="ToolStripLocationCancelEventArgs.cs" company="Microsoft">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>                                                                
//------------------------------------------------------------------------------
 
namespace System.Windows.Forms {
    using System.ComponentModel;
    using System.Diagnostics;
    using System;
    using System.Drawing;
 
    /// <include file='doc\ToolStripLocationCancelEventArgs.uex' path='docs/doc[@for="ToolStripLocationCancelEventArgs"]/*' />
    /// <devdoc>
    ///    <para>
    ///       ToolStripLocationCancelEventArgs provides Arguments for the Cancelable LocationChanging Event.
    ///       event.
    ///    </para>
    /// </devdoc>
    internal class ToolStripLocationCancelEventArgs : CancelEventArgs {
 
        private Point newLocation;
        
        
        /// <include file='doc\ToolStripLocationCancelEventArgs.uex' path='docs/doc[@for="ToolStripLocationCancelEventArgs.ToolStripLocationCancelEventArgs"]/*' />
        /// <devdoc>
        ///    <para>
        ///       Initializes a new instance of the ToolStripLocationCancelEventArgs with cancel value.
        ///    </para>
        /// </devdoc>
        public ToolStripLocationCancelEventArgs(Point newLocation, bool value) : base(value) {
           
            this.newLocation = newLocation;
            
        }
 
        /// <include file='doc\ToolStripLocationCancelEventArgs.uex' path='docs/doc[@for="ToolStripLocationCancelEventArgs.NewLocation"]/*' />
        /// <devdoc>
        ///    <para>
        ///       Returns the New Location of the ToolStrip.
        ///    </para>
        /// </devdoc>
        public Point NewLocation {
            get {
                return this.newLocation;
            }
        }
    }
}