ToolStripLocationCancelEventArgs.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / ToolStripLocationCancelEventArgs.cs / 1 / ToolStripLocationCancelEventArgs.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Windows.Forms { 
    using System.ComponentModel; 
    using System.Diagnostics;
    using System; 
    using System.Drawing;

    /// 
    ///  
    ///    
    ///       ToolStripLocationCancelEventArgs provides Arguments for the Cancelable LocationChanging Event. 
    ///       event. 
    ///    
    ///  
    internal class ToolStripLocationCancelEventArgs : CancelEventArgs {

        private Point newLocation;
 

        ///  
        ///  
        ///    
        ///       Initializes a new instance of the ToolStripLocationCancelEventArgs with cancel value. 
        ///    
        /// 
        public ToolStripLocationCancelEventArgs(Point newLocation, bool value) : base(value) {
 
            this.newLocation = newLocation;
 
        } 

        ///  
        /// 
        ///    
        ///       Returns the New Location of the ToolStrip.
        ///     
        /// 
        public Point NewLocation { 
            get { 
                return this.newLocation;
            } 
        }
    }
}
 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK