SplitterEvent.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / WinForms / Managed / System / WinForms / SplitterEvent.cs / 1 / SplitterEvent.cs

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

/* 
 */ 
namespace System.Windows.Forms {
 
    using System.Diagnostics;

    using System;
    using System.ComponentModel; 
    using System.Drawing;
    using Microsoft.Win32; 
 
    /// 
    ///  
    ///    
    ///       Provides data for splitter events.
    ///    
    ///  
    [System.Runtime.InteropServices.ComVisible(true)]
    public class SplitterEventArgs : EventArgs { 
 
        private readonly int x;
        private readonly int y; 
        private int splitX;
        private int splitY;

        ///  
        /// 
        ///     
        ///       Initializes an instance of the  class with the specified coordinates 
        ///       of the mouse pointer and the upper-left corner of the .
        ///     
        /// 
        public SplitterEventArgs(int x, int y, int splitX, int splitY) {
            this.x = x;
            this.y = y; 
            this.splitX = splitX;
            this.splitY = splitY; 
        } 

        ///  
        /// 
        ///    
        ///       Gets the x-coordinate of the
        ///       mouse pointer (in client coordinates). 
        ///    
        ///  
        public int X { 
            get {
                return x; 
            }
        }

        ///  
        /// 
        ///     
        ///       Gets the y-coordinate of the mouse pointer (in 
        ///       client coordinates).
        ///     
        /// 
        public int Y {
            get {
                return y; 
            }
        } 
 
        /// 
        ///  
        ///    
        ///       Gets the x-coordinate of the
        ///       upper-left corner of the  (in client coordinates).
        ///     
        /// 
        public int SplitX { 
            get { 
                return splitX;
            } 
            set {
                splitX = value;
            }
        } 

        ///  
        ///  
        ///    
        ///       Gets the y-coordinate of the upper-left corner of the  (in client coordinates). 
        ///    
        /// 
        public int SplitY {
            get { 
                return splitY;
            } 
            set { 
                splitY = value;
            } 
        }
    }
}

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

/* 
 */ 
namespace System.Windows.Forms {
 
    using System.Diagnostics;

    using System;
    using System.ComponentModel; 
    using System.Drawing;
    using Microsoft.Win32; 
 
    /// 
    ///  
    ///    
    ///       Provides data for splitter events.
    ///    
    ///  
    [System.Runtime.InteropServices.ComVisible(true)]
    public class SplitterEventArgs : EventArgs { 
 
        private readonly int x;
        private readonly int y; 
        private int splitX;
        private int splitY;

        ///  
        /// 
        ///     
        ///       Initializes an instance of the  class with the specified coordinates 
        ///       of the mouse pointer and the upper-left corner of the .
        ///     
        /// 
        public SplitterEventArgs(int x, int y, int splitX, int splitY) {
            this.x = x;
            this.y = y; 
            this.splitX = splitX;
            this.splitY = splitY; 
        } 

        ///  
        /// 
        ///    
        ///       Gets the x-coordinate of the
        ///       mouse pointer (in client coordinates). 
        ///    
        ///  
        public int X { 
            get {
                return x; 
            }
        }

        ///  
        /// 
        ///     
        ///       Gets the y-coordinate of the mouse pointer (in 
        ///       client coordinates).
        ///     
        /// 
        public int Y {
            get {
                return y; 
            }
        } 
 
        /// 
        ///  
        ///    
        ///       Gets the x-coordinate of the
        ///       upper-left corner of the  (in client coordinates).
        ///     
        /// 
        public int SplitX { 
            get { 
                return splitX;
            } 
            set {
                splitX = value;
            }
        } 

        ///  
        ///  
        ///    
        ///       Gets the y-coordinate of the upper-left corner of the  (in client coordinates). 
        ///    
        /// 
        public int SplitY {
            get { 
                return splitY;
            } 
            set { 
                splitY = value;
            } 
        }
    }
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.

                        

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