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
- Rotation3D.cs
- MouseActionConverter.cs
- ClosableStream.cs
- FileDataSourceCache.cs
- ComponentManagerBroker.cs
- StorageAssociationSetMapping.cs
- OAVariantLib.cs
- CodeTypeReferenceCollection.cs
- XmlNodeWriter.cs
- InstalledFontCollection.cs
- NavigationWindowAutomationPeer.cs
- SystemPens.cs
- ExpressionBindings.cs
- HWStack.cs
- Menu.cs
- HttpContext.cs
- HandlerBase.cs
- LoginName.cs
- SecurityDescriptor.cs
- SystemMulticastIPAddressInformation.cs
- EncoderFallback.cs
- WinFormsSecurity.cs
- ManagedWndProcTracker.cs
- AuthenticationManager.cs
- XmlUtil.cs
- SubpageParagraph.cs
- Thread.cs
- LineMetrics.cs
- InkCollectionBehavior.cs
- MailHeaderInfo.cs
- Variant.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- WebControlAdapter.cs
- HttpHostedTransportConfiguration.cs
- RawKeyboardInputReport.cs
- TriState.cs
- DataControlCommands.cs
- SyndicationSerializer.cs
- WmiPutTraceRecord.cs
- OperationFormatStyle.cs
- _ProxyRegBlob.cs
- Container.cs
- CalloutQueueItem.cs
- ApplicationFileCodeDomTreeGenerator.cs
- GlobalEventManager.cs
- ReadOnlyHierarchicalDataSourceView.cs
- AnimatedTypeHelpers.cs
- CompilerParameters.cs
- Baml2006ReaderContext.cs
- InvalidCommandTreeException.cs
- SqlExpressionNullability.cs
- EntityException.cs
- ClusterSafeNativeMethods.cs
- DecimalStorage.cs
- UnsafeNativeMethods.cs
- NavigationExpr.cs
- DataGridViewComboBoxColumn.cs
- OdbcException.cs
- XmlSerializerAssemblyAttribute.cs
- UICuesEvent.cs
- _LocalDataStoreMgr.cs
- WindowsMenu.cs
- OleDbRowUpdatedEvent.cs
- KeyPullup.cs
- MaterializeFromAtom.cs
- DetailsViewPageEventArgs.cs
- UDPClient.cs
- OleDbCommand.cs
- ButtonChrome.cs
- FieldMetadata.cs
- Predicate.cs
- ColumnMapCopier.cs
- CodeIdentifiers.cs
- AttachedPropertiesService.cs
- TraceUtils.cs
- DataControlFieldCollection.cs
- EventHandlersDesigner.cs
- __Error.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- Errors.cs
- OutputScopeManager.cs
- SrgsElementList.cs
- Geometry.cs
- Transform3DGroup.cs
- CodeGeneratorOptions.cs
- FlowDocumentFormatter.cs
- Item.cs
- BrushMappingModeValidation.cs
- Rotation3D.cs
- DataBinding.cs
- ReflectionUtil.cs
- AudioFormatConverter.cs
- CalendarButton.cs
- DesignerView.xaml.cs
- VirtualDirectoryMappingCollection.cs
- ValidationPropertyAttribute.cs
- CustomAttributeBuilder.cs
- GatewayIPAddressInformationCollection.cs
- RectAnimationUsingKeyFrames.cs
- DesignTable.cs