Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / WinForms / Managed / System / WinForms / DragEvent.cs / 1 / DragEvent.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms { using System.Diagnostics; using System; using System.Drawing; using System.Windows.Forms; using System.ComponentModel; using Microsoft.Win32; ////// /// [System.Runtime.InteropServices.ComVisible(true)] public class DragEventArgs : EventArgs { ////// Provides data for the ///, , or event. /// /// /// The data associated with this event. /// private readonly IDataObject data; ////// /// The current state of the shift, ctrl, and alt keys. /// private readonly int keyState; ////// /// The mouse x location. /// private readonly int x; ////// /// The mouse y location. /// private readonly int y; ////// /// The effect that should be applied to the mouse cursor. /// private readonly DragDropEffects allowedEffect; ////// /// private DragDropEffects effect; ////// Initializes a new instance of the ////// class. /// /// /// /// public DragEventArgs(IDataObject data, int keyState, int x, int y, DragDropEffects allowedEffect, DragDropEffects effect) { this.data = data; this.keyState = keyState; this.x = x; this.y = y; this.allowedEffect = allowedEffect; this.effect = effect; } ////// Initializes a new instance of the ///class. /// /// /// public IDataObject Data { get { return data; } } ////// The ////// that contains the data associated with this event. /// /// /// public int KeyState { get { return keyState; } } ////// Gets /// the current state of the SHIFT, CTRL, and ALT keys. /// /// ////// /// public int X { get { return x; } } ////// Gets the /// x-coordinate /// of the mouse pointer. /// ////// /// public int Y { get { return y; } } ////// Gets /// the y-coordinate /// of the mouse pointer. /// ////// /// public DragDropEffects AllowedEffect { get { return allowedEffect; } } ////// Gets which drag-and-drop operations are allowed by the /// originator (or source) of the drag event. /// ////// /// public DragDropEffects Effect { get { return effect; } set { effect = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets or sets which drag-and-drop operations are allowed by the target of the drag event. /// ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms { using System.Diagnostics; using System; using System.Drawing; using System.Windows.Forms; using System.ComponentModel; using Microsoft.Win32; ////// /// [System.Runtime.InteropServices.ComVisible(true)] public class DragEventArgs : EventArgs { ////// Provides data for the ///, , or event. /// /// /// The data associated with this event. /// private readonly IDataObject data; ////// /// The current state of the shift, ctrl, and alt keys. /// private readonly int keyState; ////// /// The mouse x location. /// private readonly int x; ////// /// The mouse y location. /// private readonly int y; ////// /// The effect that should be applied to the mouse cursor. /// private readonly DragDropEffects allowedEffect; ////// /// private DragDropEffects effect; ////// Initializes a new instance of the ////// class. /// /// /// /// public DragEventArgs(IDataObject data, int keyState, int x, int y, DragDropEffects allowedEffect, DragDropEffects effect) { this.data = data; this.keyState = keyState; this.x = x; this.y = y; this.allowedEffect = allowedEffect; this.effect = effect; } ////// Initializes a new instance of the ///class. /// /// /// public IDataObject Data { get { return data; } } ////// The ////// that contains the data associated with this event. /// /// /// public int KeyState { get { return keyState; } } ////// Gets /// the current state of the SHIFT, CTRL, and ALT keys. /// /// ////// /// public int X { get { return x; } } ////// Gets the /// x-coordinate /// of the mouse pointer. /// ////// /// public int Y { get { return y; } } ////// Gets /// the y-coordinate /// of the mouse pointer. /// ////// /// public DragDropEffects AllowedEffect { get { return allowedEffect; } } ////// Gets which drag-and-drop operations are allowed by the /// originator (or source) of the drag event. /// ////// /// public DragDropEffects Effect { get { return effect; } set { effect = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets or sets which drag-and-drop operations are allowed by the target of the drag event. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NameValueCollection.cs
- OperationResponse.cs
- ServiceSettingsResponseInfo.cs
- WindowInteropHelper.cs
- unsafenativemethodstextservices.cs
- MimePart.cs
- LayoutDump.cs
- ProtocolElement.cs
- BasicAsyncResult.cs
- FileDialog_Vista.cs
- SvcMapFileLoader.cs
- HandlerBase.cs
- WindowsAuthenticationEventArgs.cs
- ConvertTextFrag.cs
- SimpleWorkerRequest.cs
- KeyConstraint.cs
- WindowsGraphics.cs
- TreeNodeBinding.cs
- ElementUtil.cs
- MD5.cs
- NamespaceExpr.cs
- MasterPage.cs
- DataTableNewRowEvent.cs
- FacetChecker.cs
- BaseDataBoundControl.cs
- EntitySqlException.cs
- Unit.cs
- DelegatingChannelListener.cs
- ConfigXmlWhitespace.cs
- ObjectDataSourceSelectingEventArgs.cs
- OutputScopeManager.cs
- BamlLocalizationDictionary.cs
- ListControlBuilder.cs
- LinqExpressionNormalizer.cs
- CellIdBoolean.cs
- Span.cs
- CustomGrammar.cs
- ZipIOBlockManager.cs
- UnorderedHashRepartitionStream.cs
- DataObjectFieldAttribute.cs
- SchemaImporterExtensionElement.cs
- ReadOnlyDictionary.cs
- EntityModelSchemaGenerator.cs
- CopyNodeSetAction.cs
- StrongNamePublicKeyBlob.cs
- ImpersonateTokenRef.cs
- RegexWorker.cs
- SingleResultAttribute.cs
- AsnEncodedData.cs
- GridItemProviderWrapper.cs
- InitializeCorrelation.cs
- XmlSchemaNotation.cs
- SqlConnection.cs
- CallbackValidator.cs
- OrderedDictionary.cs
- AdPostCacheSubstitution.cs
- ReadonlyMessageFilter.cs
- WindowsBrush.cs
- WindowsRichEditRange.cs
- SmtpNegotiateAuthenticationModule.cs
- HtmlShimManager.cs
- KeyFrames.cs
- PageCodeDomTreeGenerator.cs
- _ListenerAsyncResult.cs
- StructuralObject.cs
- SecurityException.cs
- MatrixAnimationUsingPath.cs
- Expressions.cs
- ColorAnimationUsingKeyFrames.cs
- StorageModelBuildProvider.cs
- InfocardClientCredentials.cs
- MoveSizeWinEventHandler.cs
- XpsFilter.cs
- Propagator.JoinPropagator.cs
- PackagingUtilities.cs
- QuadraticBezierSegment.cs
- PropertyDescriptor.cs
- MediaElementAutomationPeer.cs
- JsonQNameDataContract.cs
- PasswordValidationException.cs
- SpellerInterop.cs
- DependencyPropertyKind.cs
- AuthenticatedStream.cs
- AmbientLight.cs
- RuntimeArgumentHandle.cs
- HttpListenerRequest.cs
- BmpBitmapEncoder.cs
- ClockGroup.cs
- SuppressMessageAttribute.cs
- DataRowView.cs
- Avt.cs
- ClaimComparer.cs
- XsltQilFactory.cs
- ObjectAnimationBase.cs
- Simplifier.cs
- NetSectionGroup.cs
- Positioning.cs
- NavigationExpr.cs
- AutomationElement.cs
- UnsafeNativeMethods.cs