ItemDragEvent.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / ItemDragEvent.cs / 1 / ItemDragEvent.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 the  event.
    ///    
    /// 
    [System.Runtime.InteropServices.ComVisible(true)] 
    public class ItemDragEventArgs : EventArgs {
        readonly MouseButtons button; 
        readonly object item; 

        ///  
        /// 
        ///    [To be supplied.]
        /// 
        public ItemDragEventArgs(MouseButtons button) { 
            this.button = button;
            this.item = null; 
        } 

        ///  
        /// 
        ///    [To be supplied.]
        /// 
        public ItemDragEventArgs(MouseButtons button, object item) { 
            this.button = button;
            this.item = item; 
        } 

        ///  
        /// 
        ///    [To be supplied.]
        /// 
        public MouseButtons Button { 
            get { return button; }
        } 
 
        /// 
        ///  
        ///    [To be supplied.]
        /// 
        public object Item {
            get { return item; } 
        }
    } 
} 

// 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 the  event.
    ///    
    /// 
    [System.Runtime.InteropServices.ComVisible(true)] 
    public class ItemDragEventArgs : EventArgs {
        readonly MouseButtons button; 
        readonly object item; 

        ///  
        /// 
        ///    [To be supplied.]
        /// 
        public ItemDragEventArgs(MouseButtons button) { 
            this.button = button;
            this.item = null; 
        } 

        ///  
        /// 
        ///    [To be supplied.]
        /// 
        public ItemDragEventArgs(MouseButtons button, object item) { 
            this.button = button;
            this.item = item; 
        } 

        ///  
        /// 
        ///    [To be supplied.]
        /// 
        public MouseButtons Button { 
            get { return button; }
        } 
 
        /// 
        ///  
        ///    [To be supplied.]
        /// 
        public object Item {
            get { return item; } 
        }
    } 
} 

// 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