QueryContinueDragEvent.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / QueryContinueDragEvent.cs / 1 / QueryContinueDragEvent.cs

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

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

    using System;
    using System.Drawing; 
    using System.ComponentModel;
    using Microsoft.Win32; 
 
    /// 
    ///  
    ///    
    ///       Provides data for the 
    ///       event.
    ///     
    /// 
    [System.Runtime.InteropServices.ComVisible(true)] 
    public class QueryContinueDragEventArgs : EventArgs { 

        private readonly int keyState; 
        private readonly bool escapePressed;
        private DragAction action;

        ///  
        /// 
        ///     
        ///       Initializes a new instance of the  class. 
        ///    
        ///  
        public QueryContinueDragEventArgs(int keyState, bool escapePressed, DragAction action) {
            this.keyState = keyState;
            this.escapePressed = escapePressed;
            this.action = action; 
        }
 
        ///  
        /// 
        ///     
        ///       Gets a value indicating
        ///       the current state of the SHIFT, CTRL, and ALT keys.
        ///  
        ///  
        public int KeyState {
            get { 
                return keyState; 
            }
        } 

        /// 
        /// 
        ///     
        ///       Gets a value indicating whether the user pressed the ESC key.
        ///     
        ///  
        public bool EscapePressed {
            get { 
                return escapePressed;
            }
        }
 
        /// 
        ///  
        ///     
        ///       Gets
        ///       or sets the status of a drag-and-drop operation. 
        ///    
        /// 
        public DragAction Action {
            get { 
                return action;
            } 
            set { 
                action = value;
            } 
        }
    }
}

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