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
- BrowserCapabilitiesCompiler.cs
- RenameRuleObjectDialog.Designer.cs
- TemplatedAdorner.cs
- LoginDesigner.cs
- EntityDataSourceUtil.cs
- DelegatedStream.cs
- DBCommandBuilder.cs
- SettingsProperty.cs
- TablePatternIdentifiers.cs
- AssemblyCache.cs
- WebPartEditorCancelVerb.cs
- ServiceOperationInfoTypeConverter.cs
- WsdlInspector.cs
- CollectionChangeEventArgs.cs
- Size3DConverter.cs
- webclient.cs
- TextHidden.cs
- HttpRequestCacheValidator.cs
- RuntimeHandles.cs
- Math.cs
- PropertyInfoSet.cs
- RootAction.cs
- TimerElapsedEvenArgs.cs
- TileBrush.cs
- TimelineGroup.cs
- exports.cs
- GridViewCancelEditEventArgs.cs
- Command.cs
- ErasingStroke.cs
- BitmapCodecInfoInternal.cs
- EventManager.cs
- ListItemCollection.cs
- UserValidatedEventArgs.cs
- PartialArray.cs
- ProtocolsConfiguration.cs
- HealthMonitoringSectionHelper.cs
- AcceleratedTokenAuthenticator.cs
- QueueSurrogate.cs
- QilLoop.cs
- TypeSystemProvider.cs
- XmlSchemaObjectTable.cs
- MergeFilterQuery.cs
- DataSetUtil.cs
- PolyQuadraticBezierSegment.cs
- FrameworkElementFactoryMarkupObject.cs
- StorageModelBuildProvider.cs
- Stackframe.cs
- ListenerConnectionModeReader.cs
- LassoSelectionBehavior.cs
- Menu.cs
- XmlQueryRuntime.cs
- CompilationLock.cs
- LoadedOrUnloadedOperation.cs
- DbConvert.cs
- Membership.cs
- CaseExpr.cs
- PreProcessor.cs
- OpenFileDialog.cs
- ModuleBuilderData.cs
- MembershipAdapter.cs
- XDeferredAxisSource.cs
- ResourceReferenceExpressionConverter.cs
- EventlogProvider.cs
- PromptStyle.cs
- StringDictionaryEditor.cs
- ClientScriptManager.cs
- XmlDownloadManager.cs
- AssemblyContextControlItem.cs
- BamlLocalizableResourceKey.cs
- webbrowsersite.cs
- Bitmap.cs
- Encoding.cs
- StringInfo.cs
- CapacityStreamGeometryContext.cs
- MenuItemBindingCollection.cs
- OpenFileDialog.cs
- LinkDescriptor.cs
- IdentitySection.cs
- AudioFormatConverter.cs
- HandlerFactoryCache.cs
- SqlReferenceCollection.cs
- SystemIPv4InterfaceProperties.cs
- EmptyEnumerator.cs
- Internal.cs
- Query.cs
- ContainerActivationHelper.cs
- DBDataPermissionAttribute.cs
- RtfToXamlLexer.cs
- BitmapMetadataEnumerator.cs
- listitem.cs
- ImplicitInputBrush.cs
- GeneralTransform3DGroup.cs
- CultureSpecificStringDictionary.cs
- MenuCommand.cs
- PropertyMetadata.cs
- ViewStateModeByIdAttribute.cs
- MetadataPropertyvalue.cs
- SizeConverter.cs
- WriteStateInfoBase.cs
- SqlNodeTypeOperators.cs