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
- PrivilegeNotHeldException.cs
- ParagraphVisual.cs
- StatusBarPanel.cs
- DataControlCommands.cs
- Fx.cs
- RoutedPropertyChangedEventArgs.cs
- TextWriter.cs
- MouseEvent.cs
- XsltContext.cs
- SiteMapPath.cs
- DesignerVerb.cs
- IdentifierCollection.cs
- FontStretchConverter.cs
- SqlError.cs
- XpsFontSerializationService.cs
- ProcessProtocolHandler.cs
- RepeaterItem.cs
- SqlConnectionString.cs
- Preprocessor.cs
- Action.cs
- DataRelationCollection.cs
- GeometryValueSerializer.cs
- KoreanLunisolarCalendar.cs
- EventProviderWriter.cs
- ListBoxAutomationPeer.cs
- RepeatButton.cs
- DataGridHeaderBorder.cs
- PropertyTabChangedEvent.cs
- mediaeventargs.cs
- hebrewshape.cs
- StreamGeometry.cs
- Floater.cs
- HtmlInputSubmit.cs
- AsymmetricKeyExchangeFormatter.cs
- KeyProperty.cs
- LinearKeyFrames.cs
- WasHttpHandlersInstallComponent.cs
- LayoutEditorPart.cs
- DetailsViewInsertEventArgs.cs
- UrlMappingCollection.cs
- SchemaObjectWriter.cs
- KoreanCalendar.cs
- WebPartConnectionsCancelVerb.cs
- XmlChildNodes.cs
- RecordsAffectedEventArgs.cs
- SmiRequestExecutor.cs
- TransformerTypeCollection.cs
- Attachment.cs
- LogSwitch.cs
- DataView.cs
- SmtpException.cs
- CustomAttributeSerializer.cs
- FileVersionInfo.cs
- DataGridPagerStyle.cs
- TcpAppDomainProtocolHandler.cs
- SqlServer2KCompatibilityAnnotation.cs
- FontStretch.cs
- ContentHostHelper.cs
- SchemaObjectWriter.cs
- XmlAnyElementAttributes.cs
- DiscoveryRequestHandler.cs
- NullableIntSumAggregationOperator.cs
- SystemResources.cs
- _CacheStreams.cs
- PenLineJoinValidation.cs
- EncryptedHeaderXml.cs
- ColumnMapVisitor.cs
- OracleDateTime.cs
- Relationship.cs
- CollaborationHelperFunctions.cs
- DesignerAutoFormatCollection.cs
- ExpressionEditorSheet.cs
- CreateRefExpr.cs
- TransferRequestHandler.cs
- FigureHelper.cs
- DateTimeStorage.cs
- CollectionViewGroupRoot.cs
- FilterElement.cs
- IPAddress.cs
- DesignerActionHeaderItem.cs
- HtmlString.cs
- SimpleType.cs
- CancelEventArgs.cs
- SafeArrayRankMismatchException.cs
- MediaSystem.cs
- assertwrapper.cs
- dataprotectionpermission.cs
- TextElementCollection.cs
- Triangle.cs
- ResourceDefaultValueAttribute.cs
- ColumnPropertiesGroup.cs
- ExcludePathInfo.cs
- PropertyInformation.cs
- QueryConverter.cs
- ColorAnimationBase.cs
- parserscommon.cs
- XmlSchemaObjectCollection.cs
- ECDiffieHellman.cs
- Double.cs
- Soap.cs