|
//------------------------------------------------------------------------------
// <copyright file="QueryContinueDragEvent.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
/*
*/
namespace System.Windows.Forms {
using System.Diagnostics;
using System;
using System.Drawing;
using System.ComponentModel;
using Microsoft.Win32;
/// <include file='doc\QueryContinueDragEvent.uex' path='docs/doc[@for="QueryContinueDragEventArgs"]/*' />
/// <devdoc>
/// <para>
/// Provides data for the <see cref='System.Windows.Forms.Control.QueryContinueDrag'/>
/// event.
/// </para>
/// </devdoc>
[System.Runtime.InteropServices.ComVisible(true)]
public class QueryContinueDragEventArgs : EventArgs {
private readonly int keyState;
private readonly bool escapePressed;
private DragAction action;
/// <include file='doc\QueryContinueDragEvent.uex' path='docs/doc[@for="QueryContinueDragEventArgs.QueryContinueDragEventArgs"]/*' />
/// <devdoc>
/// <para>
/// Initializes a new instance of the <see cref='System.Windows.Forms.QueryContinueDragEventArgs'/> class.
/// </para>
/// </devdoc>
public QueryContinueDragEventArgs(int keyState, bool escapePressed, DragAction action) {
this.keyState = keyState;
this.escapePressed = escapePressed;
this.action = action;
}
/// <include file='doc\QueryContinueDragEvent.uex' path='docs/doc[@for="QueryContinueDragEventArgs.KeyState"]/*' />
/// <devdoc>
/// <para>
/// Gets a value indicating
/// the current state of the SHIFT, CTRL, and ALT keys.
/// </para>
/// </devdoc>
public int KeyState {
get {
return keyState;
}
}
/// <include file='doc\QueryContinueDragEvent.uex' path='docs/doc[@for="QueryContinueDragEventArgs.EscapePressed"]/*' />
/// <devdoc>
/// <para>
/// Gets a value indicating whether the user pressed the ESC key.
/// </para>
/// </devdoc>
public bool EscapePressed {
get {
return escapePressed;
}
}
/// <include file='doc\QueryContinueDragEvent.uex' path='docs/doc[@for="QueryContinueDragEventArgs.Action"]/*' />
/// <devdoc>
/// <para>
/// Gets
/// or sets the status of a drag-and-drop operation.
/// </para>
/// </devdoc>
public DragAction Action {
get {
return action;
}
set {
action = value;
}
}
}
}
|