Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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.
//
//-----------------------------------------------------------------------------
/*
*/
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
- PeerInputChannel.cs
- DrawingContextDrawingContextWalker.cs
- QilXmlWriter.cs
- TreeViewItemAutomationPeer.cs
- UrlAuthFailedErrorFormatter.cs
- ToggleButtonAutomationPeer.cs
- ContainerControl.cs
- SymbolMethod.cs
- KeyToListMap.cs
- SingleBodyParameterMessageFormatter.cs
- ObjectListCommandCollection.cs
- mediaeventargs.cs
- ConfigXmlCDataSection.cs
- RenderingBiasValidation.cs
- RectAnimation.cs
- DivideByZeroException.cs
- ExpressionVisitorHelpers.cs
- RelationshipSet.cs
- Base64Decoder.cs
- EntityDataSourceState.cs
- TriState.cs
- AdRotatorDesigner.cs
- TriggerCollection.cs
- OleDbException.cs
- SqlCachedBuffer.cs
- DiscoveryOperationContextExtension.cs
- TokenizerHelper.cs
- __Filters.cs
- RestClientProxyHandler.cs
- TcpHostedTransportConfiguration.cs
- DataColumnCollection.cs
- Paragraph.cs
- LocatorGroup.cs
- FullTextBreakpoint.cs
- VirtualizedContainerService.cs
- AssemblyFilter.cs
- XmlCharCheckingWriter.cs
- DispatcherFrame.cs
- StateDesigner.LayoutSelectionGlyph.cs
- ConfigXmlText.cs
- ImageDrawing.cs
- TypeProvider.cs
- ArraySet.cs
- CurrencyManager.cs
- XmlSchemaSimpleTypeUnion.cs
- XmlSiteMapProvider.cs
- altserialization.cs
- MethodBody.cs
- DataGridColumnCollection.cs
- HandlerFactoryCache.cs
- MediaPlayerState.cs
- DateRangeEvent.cs
- ImageBrush.cs
- WindowsRegion.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- DependencyProperty.cs
- localization.cs
- MessageSecurityOverMsmq.cs
- DeviceContexts.cs
- SimpleTypesSurrogate.cs
- DBNull.cs
- SqlUDTStorage.cs
- ComboBoxAutomationPeer.cs
- BaseDataBoundControl.cs
- BindingMAnagerBase.cs
- RulePatternOps.cs
- XmlSchemaInferenceException.cs
- BamlLocalizer.cs
- OleDbException.cs
- AccessKeyManager.cs
- DataBoundControlHelper.cs
- XmlLanguageConverter.cs
- CompensateDesigner.cs
- NonClientArea.cs
- XmlSerializationReader.cs
- InputMethodStateTypeInfo.cs
- RefExpr.cs
- StringHelper.cs
- AsmxEndpointPickerExtension.cs
- SQLInt16.cs
- CfgParser.cs
- SchemaReference.cs
- NamedObject.cs
- RoleBoolean.cs
- DrawingState.cs
- EdmToObjectNamespaceMap.cs
- ResolvedKeyFrameEntry.cs
- odbcmetadatacolumnnames.cs
- Cursor.cs
- TagPrefixInfo.cs
- WindowsToolbarAsMenu.cs
- ProgressChangedEventArgs.cs
- WorkflowServiceBuildProvider.cs
- login.cs
- GeometryDrawing.cs
- TrackingMemoryStreamFactory.cs
- HttpCacheVary.cs
- ZipIOLocalFileHeader.cs
- CommandEventArgs.cs
- ErrorItem.cs