Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / DragEvent.cs / 1305376 / 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. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DesignConnection.cs
- SQLRoleProvider.cs
- SettingsAttributes.cs
- ComplexBindingPropertiesAttribute.cs
- CatalogPartChrome.cs
- DispatcherOperation.cs
- BinaryObjectReader.cs
- WebPageTraceListener.cs
- XamlToRtfWriter.cs
- MdiWindowListStrip.cs
- ThreadStaticAttribute.cs
- Stacktrace.cs
- CompilerErrorCollection.cs
- DbModificationClause.cs
- UnmanagedMemoryAccessor.cs
- RSACryptoServiceProvider.cs
- ObjectHandle.cs
- StorageEndPropertyMapping.cs
- BitSet.cs
- DrawingCollection.cs
- Brushes.cs
- ToolboxItemFilterAttribute.cs
- WebPartVerb.cs
- DataObjectEventArgs.cs
- FullTextBreakpoint.cs
- DataSet.cs
- DesignerAutoFormat.cs
- CredentialSelector.cs
- SchemaCollectionPreprocessor.cs
- WebBrowsableAttribute.cs
- XmlLanguage.cs
- AuthorizationSection.cs
- UnsafeNativeMethods.cs
- EntityDesignerBuildProvider.cs
- FixedSOMImage.cs
- NavigationProgressEventArgs.cs
- PaintValueEventArgs.cs
- PagesChangedEventArgs.cs
- Visual3D.cs
- FullTextLine.cs
- Viewport2DVisual3D.cs
- TiffBitmapEncoder.cs
- MaskedTextBox.cs
- TextFormatterImp.cs
- TripleDESCryptoServiceProvider.cs
- NativeMethods.cs
- ToolStripLocationCancelEventArgs.cs
- StubHelpers.cs
- Tokenizer.cs
- CheckBoxList.cs
- ZipIORawDataFileBlock.cs
- JumpPath.cs
- HostSecurityManager.cs
- ReceiveContent.cs
- SourceElementsCollection.cs
- DataContractSerializerSection.cs
- DropShadowEffect.cs
- KeyGesture.cs
- WrappedIUnknown.cs
- DesignerTransaction.cs
- TextBox.cs
- DllNotFoundException.cs
- RtfToXamlReader.cs
- PasswordTextContainer.cs
- SmiSettersStream.cs
- DbConnectionPoolIdentity.cs
- ProviderConnectionPointCollection.cs
- EventItfInfo.cs
- ShaperBuffers.cs
- CommonRemoteMemoryBlock.cs
- XmlIlTypeHelper.cs
- ExceptionCollection.cs
- ISAPIApplicationHost.cs
- PartitionerQueryOperator.cs
- HwndAppCommandInputProvider.cs
- ProbeMatches11.cs
- XmlReaderSettings.cs
- HeaderPanel.cs
- XmlSchema.cs
- parserscommon.cs
- HostVisual.cs
- DirectoryNotFoundException.cs
- MethodImplAttribute.cs
- ProvidersHelper.cs
- DetailsViewCommandEventArgs.cs
- ConfigXmlAttribute.cs
- NullEntityWrapper.cs
- DrawingContext.cs
- ArgIterator.cs
- XappLauncher.cs
- MembershipSection.cs
- CommandBinding.cs
- IntMinMaxAggregationOperator.cs
- XmlUTF8TextWriter.cs
- BitmapEncoder.cs
- MenuRenderer.cs
- DWriteFactory.cs
- StyleXamlTreeBuilder.cs
- Mutex.cs
- WindowsContainer.cs