Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- MessagePartSpecification.cs
- FixedSOMTable.cs
- TableDetailsCollection.cs
- LicenseContext.cs
- SecurityPolicySection.cs
- HwndMouseInputProvider.cs
- CLRBindingWorker.cs
- XPathAncestorIterator.cs
- SequentialUshortCollection.cs
- SequenceFullException.cs
- Formatter.cs
- EntityTemplateFactory.cs
- TextFormatter.cs
- webclient.cs
- FindCompletedEventArgs.cs
- GetKeyedHashRequest.cs
- StrokeCollection2.cs
- HelpEvent.cs
- Calendar.cs
- WriteTimeStream.cs
- HttpRawResponse.cs
- RayHitTestParameters.cs
- InkCanvasSelectionAdorner.cs
- InvariantComparer.cs
- MobileUITypeEditor.cs
- InvalidPrinterException.cs
- RsaSecurityKey.cs
- DefaultSerializationProviderAttribute.cs
- RichTextBoxAutomationPeer.cs
- MatrixTransform.cs
- ExceptionUtil.cs
- RouteItem.cs
- DBSchemaRow.cs
- EntityDataSourceView.cs
- ThreadExceptionDialog.cs
- RemotingService.cs
- BackgroundWorker.cs
- FileInfo.cs
- Win32MouseDevice.cs
- AttachInfo.cs
- HtmlShimManager.cs
- SmtpDigestAuthenticationModule.cs
- EventWaitHandle.cs
- CapabilitiesSection.cs
- ProjectionPathSegment.cs
- WriteTimeStream.cs
- EventArgs.cs
- OrCondition.cs
- VerticalAlignConverter.cs
- PeerSecurityHelpers.cs
- CommandEventArgs.cs
- HtmlString.cs
- XmlSchemaAnnotated.cs
- NumericUpDown.cs
- DateTimeUtil.cs
- Label.cs
- GridEntryCollection.cs
- DbgCompiler.cs
- _StreamFramer.cs
- AssociationType.cs
- BinHexEncoder.cs
- WorkflowRuntimeSection.cs
- HandledEventArgs.cs
- WebPartManagerInternals.cs
- TagMapInfo.cs
- BasicSecurityProfileVersion.cs
- SecUtil.cs
- Bezier.cs
- ToolStripDropDownClosingEventArgs.cs
- RegexTree.cs
- DataGridTablesFactory.cs
- UseAttributeSetsAction.cs
- DbDataAdapter.cs
- FacetValues.cs
- InputMethod.cs
- ShapingEngine.cs
- ChangePasswordDesigner.cs
- TypePresenter.xaml.cs
- CheckPair.cs
- AbandonedMutexException.cs
- TemplateContent.cs
- BypassElement.cs
- cookiecontainer.cs
- SizeKeyFrameCollection.cs
- MULTI_QI.cs
- ThemeInfoAttribute.cs
- HashAlgorithm.cs
- AnonymousIdentificationModule.cs
- MutexSecurity.cs
- RIPEMD160.cs
- SafeIUnknown.cs
- TraceFilter.cs
- StorageAssociationSetMapping.cs
- IgnoreSection.cs
- IsolatedStorageException.cs
- nulltextnavigator.cs
- RowUpdatingEventArgs.cs
- GenericParameterDataContract.cs
- DirectionalLight.cs
- StringConverter.cs