Code:
/ 4.0 / 4.0 / 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; ////// /// [System.Runtime.InteropServices.ComVisible(true)] public class QueryContinueDragEventArgs : EventArgs { private readonly int keyState; private readonly bool escapePressed; private DragAction action; ////// Provides data for the ////// event. /// /// /// public QueryContinueDragEventArgs(int keyState, bool escapePressed, DragAction action) { this.keyState = keyState; this.escapePressed = escapePressed; this.action = action; } ////// Initializes a new instance of the ///class. /// /// /// public int KeyState { get { return keyState; } } ////// Gets a value indicating /// the current state of the SHIFT, CTRL, and ALT keys. /// ////// /// public bool EscapePressed { get { return escapePressed; } } ////// Gets a value indicating whether the user pressed the ESC key. /// ////// /// public DragAction Action { get { return action; } set { action = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets /// or sets the status of a drag-and-drop operation. /// ///// 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; ////// /// [System.Runtime.InteropServices.ComVisible(true)] public class QueryContinueDragEventArgs : EventArgs { private readonly int keyState; private readonly bool escapePressed; private DragAction action; ////// Provides data for the ////// event. /// /// /// public QueryContinueDragEventArgs(int keyState, bool escapePressed, DragAction action) { this.keyState = keyState; this.escapePressed = escapePressed; this.action = action; } ////// Initializes a new instance of the ///class. /// /// /// public int KeyState { get { return keyState; } } ////// Gets a value indicating /// the current state of the SHIFT, CTRL, and ALT keys. /// ////// /// public bool EscapePressed { get { return escapePressed; } } ////// Gets a value indicating whether the user pressed the ESC key. /// ////// /// public DragAction Action { get { return action; } set { action = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets /// or sets the status of a drag-and-drop operation. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TransactionTraceIdentifier.cs
- CategoryList.cs
- GregorianCalendarHelper.cs
- SqlNodeAnnotations.cs
- DisposableCollectionWrapper.cs
- RequiredAttributeAttribute.cs
- UnauthorizedAccessException.cs
- PropertyGeneratedEventArgs.cs
- ConsumerConnectionPointCollection.cs
- Grant.cs
- DrawingVisual.cs
- TextReader.cs
- DifferencingCollection.cs
- XmlSchemaChoice.cs
- Size3DConverter.cs
- LiteralLink.cs
- XPathSelfQuery.cs
- SequenceFullException.cs
- SqlNamer.cs
- ResourceReferenceExpressionConverter.cs
- DrawingContextDrawingContextWalker.cs
- FileUtil.cs
- NavigationHelper.cs
- LookupBindingPropertiesAttribute.cs
- Timeline.cs
- WindowsTitleBar.cs
- AddInIpcChannel.cs
- ManagementEventArgs.cs
- Hash.cs
- SqlInternalConnection.cs
- PolicyValidator.cs
- AxImporter.cs
- AnimationException.cs
- BindingOperations.cs
- RightsManagementInformation.cs
- DictionaryEditChange.cs
- ComPlusInstanceProvider.cs
- DPTypeDescriptorContext.cs
- ComponentManagerBroker.cs
- HeaderCollection.cs
- WeakEventManager.cs
- DrawingState.cs
- FrameworkTemplate.cs
- GenericPrincipal.cs
- KernelTypeValidation.cs
- EdmScalarPropertyAttribute.cs
- GC.cs
- CombinedGeometry.cs
- Compensate.cs
- CustomError.cs
- CustomTypeDescriptor.cs
- RestHandlerFactory.cs
- FontEmbeddingManager.cs
- EventBuilder.cs
- ObjectDataSourceMethodEventArgs.cs
- wmiprovider.cs
- FixedSOMPage.cs
- BaseComponentEditor.cs
- MobileCapabilities.cs
- DbProviderFactories.cs
- ParamArrayAttribute.cs
- DataStreamFromComStream.cs
- CreatingCookieEventArgs.cs
- ByteStack.cs
- WebPartConnectionsConnectVerb.cs
- Convert.cs
- ComponentResourceKeyConverter.cs
- ViewStateModeByIdAttribute.cs
- FixedTextSelectionProcessor.cs
- Converter.cs
- BasicViewGenerator.cs
- Variant.cs
- HostingEnvironmentSection.cs
- InteropEnvironment.cs
- EnumerableCollectionView.cs
- FacetValueContainer.cs
- IntegerValidatorAttribute.cs
- Win32KeyboardDevice.cs
- GcHandle.cs
- PerformanceCounterPermission.cs
- DataGridViewColumn.cs
- LicenseManager.cs
- TextDecoration.cs
- NullReferenceException.cs
- HMACSHA1.cs
- StyleSelector.cs
- RSAPKCS1SignatureFormatter.cs
- RenderData.cs
- ISO2022Encoding.cs
- AssertUtility.cs
- GroupItemAutomationPeer.cs
- Transform.cs
- ColorTransform.cs
- DrawingAttributeSerializer.cs
- ApplicationGesture.cs
- RepeatBehaviorConverter.cs
- RangeValuePattern.cs
- ConnectionConsumerAttribute.cs
- NumericUpDownAccelerationCollection.cs
- ToolZone.cs