Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / QueryContinueDragEvent.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AmbientLight.cs
- DataStreamFromComStream.cs
- ITreeGenerator.cs
- SamlAuthorizationDecisionClaimResource.cs
- Helpers.cs
- HttpClientCertificate.cs
- StringValidatorAttribute.cs
- PopupControlService.cs
- FileDialog_Vista.cs
- HttpServerProtocol.cs
- EmptyElement.cs
- RelationshipManager.cs
- SHA1CryptoServiceProvider.cs
- EntityViewGenerationConstants.cs
- AspNetPartialTrustHelpers.cs
- ClickablePoint.cs
- MouseGesture.cs
- DesignerCategoryAttribute.cs
- ListViewInsertionMark.cs
- DispatchChannelSink.cs
- AudioSignalProblemOccurredEventArgs.cs
- ToolStripDropDownMenu.cs
- WindowsSecurityTokenAuthenticator.cs
- MetadataPropertyCollection.cs
- StatusStrip.cs
- SubtreeProcessor.cs
- CustomWebEventKey.cs
- SchemaConstraints.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- FontUnit.cs
- ExeContext.cs
- TextBoxAutoCompleteSourceConverter.cs
- EntityDataSourceEntityTypeFilterItem.cs
- SizeIndependentAnimationStorage.cs
- NetStream.cs
- FixedSOMContainer.cs
- SystemIcmpV4Statistics.cs
- TypeConverterAttribute.cs
- TextServicesDisplayAttribute.cs
- TraceXPathNavigator.cs
- nulltextcontainer.cs
- AlternateView.cs
- SafeSecurityHandles.cs
- StrokeSerializer.cs
- ProfileWorkflowElement.cs
- ArraySortHelper.cs
- SecurityHelper.cs
- ZipIOExtraFieldElement.cs
- KeyInterop.cs
- PartialTrustHelpers.cs
- UiaCoreTypesApi.cs
- MethodBuilderInstantiation.cs
- counter.cs
- TextViewBase.cs
- CodeAccessPermission.cs
- SymbolMethod.cs
- HandleCollector.cs
- LoginCancelEventArgs.cs
- EntityClientCacheEntry.cs
- URL.cs
- XhtmlBasicSelectionListAdapter.cs
- ConsoleTraceListener.cs
- FusionWrap.cs
- Win32Native.cs
- IListConverters.cs
- __ComObject.cs
- ProfileBuildProvider.cs
- ToolStripMenuItemDesigner.cs
- SqlDataSourceCustomCommandEditor.cs
- ResourceReferenceExpression.cs
- RelOps.cs
- DesignerWithHeader.cs
- LockRenewalTask.cs
- DataObjectFieldAttribute.cs
- TemplateControlParser.cs
- StorageBasedPackageProperties.cs
- translator.cs
- RenderOptions.cs
- SBCSCodePageEncoding.cs
- RSAOAEPKeyExchangeDeformatter.cs
- KeyEvent.cs
- RowToParametersTransformer.cs
- ChangePasswordAutoFormat.cs
- TreeNodeStyleCollectionEditor.cs
- XhtmlBasicObjectListAdapter.cs
- SpoolingTaskBase.cs
- FileFormatException.cs
- DataSourceCache.cs
- DownloadProgressEventArgs.cs
- StylusPointPropertyId.cs
- Rijndael.cs
- PointAnimationUsingKeyFrames.cs
- ThreadExceptionEvent.cs
- CacheVirtualItemsEvent.cs
- StateWorkerRequest.cs
- MimeFormatter.cs
- IDQuery.cs
- DataGridRelationshipRow.cs
- LocalFileSettingsProvider.cs
- UrlMapping.cs