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
- ExpressionEditorAttribute.cs
- TextBox.cs
- SizeChangedEventArgs.cs
- RouteTable.cs
- AttachedPropertiesService.cs
- NavigationWindow.cs
- DispatcherProcessingDisabled.cs
- XPathDescendantIterator.cs
- BinaryExpressionHelper.cs
- QilPatternFactory.cs
- PerformanceCounter.cs
- StorageSetMapping.cs
- Automation.cs
- BitmapEncoder.cs
- WCFServiceClientProxyGenerator.cs
- DataQuery.cs
- PointValueSerializer.cs
- QuotedPairReader.cs
- StyleBamlRecordReader.cs
- XmlDocumentSchema.cs
- DataException.cs
- BaseComponentEditor.cs
- QuarticEase.cs
- DataPagerField.cs
- HtmlTableCellCollection.cs
- SuppressMergeCheckAttribute.cs
- TreeViewImageGenerator.cs
- BordersPage.cs
- ManipulationDevice.cs
- QueueProcessor.cs
- AdPostCacheSubstitution.cs
- DesignerSerializationVisibilityAttribute.cs
- QilSortKey.cs
- CheckBoxList.cs
- Conditional.cs
- SiteOfOriginPart.cs
- Light.cs
- XmlAttributeAttribute.cs
- FixedTextSelectionProcessor.cs
- InvalidateEvent.cs
- XmlElement.cs
- ErrorWebPart.cs
- HTTPNotFoundHandler.cs
- RuleSetReference.cs
- CodeAccessPermission.cs
- ICollection.cs
- Win32MouseDevice.cs
- ImageInfo.cs
- ConfigurationPropertyCollection.cs
- Expressions.cs
- CustomAssemblyResolver.cs
- XmlQueryCardinality.cs
- DBSchemaRow.cs
- IUnknownConstantAttribute.cs
- XmlIncludeAttribute.cs
- ExpressionDumper.cs
- ExcludePathInfo.cs
- ModelPropertyCollectionImpl.cs
- ReachFixedDocumentSerializer.cs
- StringValueConverter.cs
- ExpandoObject.cs
- While.cs
- ByteFacetDescriptionElement.cs
- DispatcherSynchronizationContext.cs
- XsltException.cs
- JsonByteArrayDataContract.cs
- TextTrailingWordEllipsis.cs
- xmlglyphRunInfo.cs
- SystemResources.cs
- FormViewModeEventArgs.cs
- FontInfo.cs
- StyleCollection.cs
- TextRenderingModeValidation.cs
- Dispatcher.cs
- ClientTargetSection.cs
- InstanceDataCollectionCollection.cs
- SoapTypeAttribute.cs
- __Filters.cs
- PrintController.cs
- DesignerActionMethodItem.cs
- RectangleConverter.cs
- CultureMapper.cs
- XmlWrappingReader.cs
- DefaultTextStoreTextComposition.cs
- AggregateNode.cs
- Trace.cs
- SoapBinding.cs
- FixedSOMTextRun.cs
- NamedPipeConnectionPool.cs
- NavigatorOutput.cs
- SQLUtility.cs
- CreateRefExpr.cs
- DecoderReplacementFallback.cs
- DiscoveryDocumentReference.cs
- CompoundFileStreamReference.cs
- PinnedBufferMemoryStream.cs
- AsymmetricSignatureDeformatter.cs
- XmlWhitespace.cs
- Size3D.cs
- ProcessInputEventArgs.cs