Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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. // Copyright (c) Microsoft Corporation. All rights reserved./// 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
- InvokeMemberBinder.cs
- CodeAttributeArgumentCollection.cs
- BinHexEncoder.cs
- DataServiceRequestException.cs
- DesignerTransactionCloseEvent.cs
- BrowserCapabilitiesFactoryBase.cs
- ChannelManager.cs
- DataGridItem.cs
- DocumentGridContextMenu.cs
- TraceListeners.cs
- LogicalExpr.cs
- ColumnPropertiesGroup.cs
- IndicFontClient.cs
- DataGridTableCollection.cs
- EndOfStreamException.cs
- XPathPatternParser.cs
- AspProxy.cs
- WindowsButton.cs
- MsmqIntegrationMessagePool.cs
- ListViewGroupConverter.cs
- CheckBoxStandardAdapter.cs
- XmlSchemaExporter.cs
- PersonalizationEntry.cs
- XmlKeywords.cs
- KeyEvent.cs
- XmlSchemaInfo.cs
- XPathMultyIterator.cs
- SystemFonts.cs
- RoleServiceManager.cs
- XmlElementAttributes.cs
- SystemMulticastIPAddressInformation.cs
- DebugHandleTracker.cs
- HeaderElement.cs
- CompilerErrorCollection.cs
- DocumentSchemaValidator.cs
- XamlVector3DCollectionSerializer.cs
- Pair.cs
- ToolStripArrowRenderEventArgs.cs
- graph.cs
- InvocationExpression.cs
- TraceEventCache.cs
- Vector3DCollection.cs
- SymmetricAlgorithm.cs
- VoiceObjectToken.cs
- SQLUtility.cs
- TimeSpanValidator.cs
- Logging.cs
- SelectionListComponentEditor.cs
- DescendentsWalkerBase.cs
- LinkLabel.cs
- SqlConnectionHelper.cs
- CriticalExceptions.cs
- LoginCancelEventArgs.cs
- XmlRawWriter.cs
- DataControlField.cs
- PropertyPushdownHelper.cs
- DelimitedListTraceListener.cs
- ExpressionEditorAttribute.cs
- RootBrowserWindow.cs
- CustomCredentialPolicy.cs
- LayoutUtils.cs
- WebBrowserNavigatingEventHandler.cs
- StringSorter.cs
- EndOfStreamException.cs
- DataControlField.cs
- WindowsBrush.cs
- SecurityToken.cs
- SwitchElementsCollection.cs
- HtmlTitle.cs
- User.cs
- XhtmlMobileTextWriter.cs
- PropagationProtocolsTracing.cs
- XamlFilter.cs
- UnauthorizedAccessException.cs
- SystemIPGlobalStatistics.cs
- HtmlControl.cs
- ButtonAutomationPeer.cs
- CompositeCollection.cs
- FragmentQueryProcessor.cs
- SatelliteContractVersionAttribute.cs
- pingexception.cs
- OpCodes.cs
- AbstractDataSvcMapFileLoader.cs
- ListInitExpression.cs
- CachedFontFace.cs
- SQLDouble.cs
- SplitterEvent.cs
- Form.cs
- _SpnDictionary.cs
- DBCSCodePageEncoding.cs
- StringExpressionSet.cs
- MessageBox.cs
- PrePrepareMethodAttribute.cs
- FileDialogPermission.cs
- GeometryHitTestResult.cs
- NavigationPropertyEmitter.cs
- UrlPropertyAttribute.cs
- AppDomainGrammarProxy.cs
- GetWinFXPath.cs
- TaskCanceledException.cs