Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DbDataRecord.cs
- AsymmetricKeyExchangeDeformatter.cs
- Bezier.cs
- SoapMessage.cs
- OutputCacheSettingsSection.cs
- HierarchicalDataBoundControlAdapter.cs
- UserControlBuildProvider.cs
- ItemDragEvent.cs
- IISMapPath.cs
- InstanceBehavior.cs
- TreeViewImageIndexConverter.cs
- ApplicationTrust.cs
- WebPartCatalogCloseVerb.cs
- XPathException.cs
- QuotedPairReader.cs
- EncodingDataItem.cs
- WinEventHandler.cs
- InternalPolicyElement.cs
- ZipFileInfo.cs
- SslSecurityTokenParameters.cs
- keycontainerpermission.cs
- GraphicsContainer.cs
- ResourceProviderFactory.cs
- HttpVersion.cs
- DefaultBindingPropertyAttribute.cs
- WebPageTraceListener.cs
- DistinctQueryOperator.cs
- DispatchOperation.cs
- HttpValueCollection.cs
- IisTraceListener.cs
- TemplateLookupAction.cs
- RegistrySecurity.cs
- X509ServiceCertificateAuthenticationElement.cs
- XamlPoint3DCollectionSerializer.cs
- AnnotationMap.cs
- TcpProcessProtocolHandler.cs
- TextFormatter.cs
- AnnotationAdorner.cs
- CompositeFontFamily.cs
- DateTimeStorage.cs
- IdentityHolder.cs
- TypeSemantics.cs
- InkPresenterAutomationPeer.cs
- _ProxyChain.cs
- DbConvert.cs
- HtmlControlDesigner.cs
- COM2PictureConverter.cs
- DependentList.cs
- QueryAccessibilityHelpEvent.cs
- BoundPropertyEntry.cs
- XmlUtf8RawTextWriter.cs
- WebBaseEventKeyComparer.cs
- InstanceCreationEditor.cs
- SchemaType.cs
- XsdDateTime.cs
- ErrorHandler.cs
- SectionVisual.cs
- PolicyDesigner.cs
- TemplateField.cs
- AlgoModule.cs
- AudioFileOut.cs
- SelectedPathEditor.cs
- ButtonBaseAutomationPeer.cs
- Part.cs
- WorkflowServiceNamespace.cs
- EnumerableCollectionView.cs
- TextChangedEventArgs.cs
- TextEditorCopyPaste.cs
- SettingsBindableAttribute.cs
- UInt16.cs
- EndpointAddress.cs
- OracleRowUpdatingEventArgs.cs
- XmlExpressionDumper.cs
- ActiveXMessageFormatter.cs
- control.ime.cs
- ITreeGenerator.cs
- IssuedTokensHeader.cs
- XamlStyleSerializer.cs
- ApplyImportsAction.cs
- CombinedGeometry.cs
- PeerName.cs
- SqlCacheDependency.cs
- ValidatorAttribute.cs
- EditorZoneBase.cs
- StylusPointCollection.cs
- IsolatedStoragePermission.cs
- XmlProcessingInstruction.cs
- HttpBrowserCapabilitiesBase.cs
- TreeNodeStyleCollection.cs
- SecurityListenerSettingsLifetimeManager.cs
- UserControl.cs
- ToolStripContentPanel.cs
- XPathSingletonIterator.cs
- PropertyEntry.cs
- Positioning.cs
- ResourceType.cs
- WindowsIdentity.cs
- Thumb.cs
- BamlRecordReader.cs
- RangeBase.cs