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
- CompilationLock.cs
- IdentityNotMappedException.cs
- EditorPartChrome.cs
- TypeHelper.cs
- LeftCellWrapper.cs
- DefaultPropertiesToSend.cs
- TogglePatternIdentifiers.cs
- JournalEntryListConverter.cs
- HttpEncoderUtility.cs
- manifestimages.cs
- XmlComment.cs
- CompositeCollection.cs
- AliasGenerator.cs
- ToolStripSettings.cs
- AssociatedControlConverter.cs
- contentDescriptor.cs
- ControlUtil.cs
- SerializationSectionGroup.cs
- SecurityHelper.cs
- StylusPointProperties.cs
- ConstructorBuilder.cs
- TcpClientCredentialType.cs
- ObjectDataSourceDisposingEventArgs.cs
- FunctionUpdateCommand.cs
- TextTreeText.cs
- ContentPlaceHolder.cs
- ListViewDesigner.cs
- ObjectRef.cs
- SerializerDescriptor.cs
- SignatureHelper.cs
- ThreadExceptionDialog.cs
- GorillaCodec.cs
- CalendarDay.cs
- KnowledgeBase.cs
- SubMenuStyleCollection.cs
- HMAC.cs
- SerializationEventsCache.cs
- TransactionScope.cs
- ConfigurationManagerHelperFactory.cs
- Model3D.cs
- LayoutEditorPart.cs
- EventNotify.cs
- COAUTHIDENTITY.cs
- SoapHeaderAttribute.cs
- DocumentViewerBaseAutomationPeer.cs
- GridViewSelectEventArgs.cs
- XmlMtomWriter.cs
- AspNetPartialTrustHelpers.cs
- BamlWriter.cs
- oledbmetadatacollectionnames.cs
- ToolboxService.cs
- WebEventTraceProvider.cs
- CapabilitiesSection.cs
- XmlFormatWriterGenerator.cs
- WebControl.cs
- Int32Storage.cs
- Version.cs
- FtpWebRequest.cs
- UpDownBase.cs
- Stackframe.cs
- ConfigUtil.cs
- SmtpNtlmAuthenticationModule.cs
- ReferenceSchema.cs
- NeedSkipTokenVisitor.cs
- ADMembershipProvider.cs
- ExpressionEditorAttribute.cs
- DataListCommandEventArgs.cs
- ExpressionVisitor.cs
- PositiveTimeSpanValidator.cs
- StylusDownEventArgs.cs
- AnnotationService.cs
- KeyConverter.cs
- entityreference_tresulttype.cs
- WindowsScroll.cs
- EndPoint.cs
- SchemaInfo.cs
- AutoSizeToolBoxItem.cs
- ChildTable.cs
- LessThan.cs
- TextServicesCompartmentContext.cs
- IDQuery.cs
- HtmlInputCheckBox.cs
- DrawingGroup.cs
- ImageMapEventArgs.cs
- ControlType.cs
- BufferAllocator.cs
- X509ClientCertificateAuthenticationElement.cs
- BuildDependencySet.cs
- TrackingRecord.cs
- FigureParagraph.cs
- SqlDataSourceCommandEventArgs.cs
- XmlSchemaSequence.cs
- BinaryParser.cs
- PageEventArgs.cs
- TemplateParser.cs
- VisualTarget.cs
- MenuItemStyleCollection.cs
- ObjectParameterCollection.cs
- ProxyHwnd.cs
- PreservationFileWriter.cs