Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / DragEvent.cs / 1305376 / 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
- TextDataBindingHandler.cs
- GeneralTransform3DGroup.cs
- CollaborationHelperFunctions.cs
- DiffuseMaterial.cs
- PathStreamGeometryContext.cs
- Error.cs
- SiteMapNodeItem.cs
- CompatibleComparer.cs
- ProviderIncompatibleException.cs
- DesignerAttribute.cs
- StringValidatorAttribute.cs
- CompModSwitches.cs
- StorageBasedPackageProperties.cs
- SoapSchemaMember.cs
- PowerEase.cs
- HostProtectionException.cs
- ResourceContainerWrapper.cs
- AttachedPropertyBrowsableAttribute.cs
- QueryBranchOp.cs
- DragDeltaEventArgs.cs
- RootBuilder.cs
- CommandField.cs
- FileNotFoundException.cs
- ListViewTableCell.cs
- MgmtConfigurationRecord.cs
- WinEventWrap.cs
- OutOfMemoryException.cs
- InputQueueChannelAcceptor.cs
- DbProviderManifest.cs
- XamlParser.cs
- PageAsyncTaskManager.cs
- CryptoKeySecurity.cs
- XMLSyntaxException.cs
- HwndAppCommandInputProvider.cs
- WsdlHelpGeneratorElement.cs
- ContextStack.cs
- TextRangeAdaptor.cs
- autovalidator.cs
- MasterPage.cs
- WindowsRebar.cs
- ServerIdentity.cs
- Cell.cs
- MultiBinding.cs
- InlineUIContainer.cs
- ClientCredentials.cs
- TextDecorationCollection.cs
- _WinHttpWebProxyDataBuilder.cs
- DependencyObject.cs
- DataFormat.cs
- DataGridCellsPanel.cs
- WorkflowInstanceContextProvider.cs
- StatusBarAutomationPeer.cs
- MasterPage.cs
- PropertyInfoSet.cs
- DataTableReaderListener.cs
- ComponentManagerBroker.cs
- EmptyEnumerator.cs
- COM2IProvidePropertyBuilderHandler.cs
- sqlser.cs
- NonDualMessageSecurityOverHttpElement.cs
- control.ime.cs
- HeaderElement.cs
- SpellerError.cs
- HistoryEventArgs.cs
- UrlAuthorizationModule.cs
- ListView.cs
- SafeCoTaskMem.cs
- WindowsAltTab.cs
- SiteMapSection.cs
- StandardOleMarshalObject.cs
- WSFederationHttpBindingCollectionElement.cs
- Journal.cs
- Token.cs
- MenuItemCollection.cs
- PersonalizationStateInfo.cs
- BadImageFormatException.cs
- BuildProvider.cs
- SoapAttributeOverrides.cs
- ReaderWriterLockWrapper.cs
- NameHandler.cs
- WebBrowserPermission.cs
- ReturnEventArgs.cs
- OperatingSystem.cs
- XmlAttributes.cs
- ItemPager.cs
- DateTimeConverter.cs
- Image.cs
- XmlSchemaComplexContent.cs
- DataGridTextBox.cs
- StorageInfo.cs
- UnsafeNativeMethodsTablet.cs
- DataGridTableCollection.cs
- SimpleHandlerBuildProvider.cs
- CodeExporter.cs
- SafePipeHandle.cs
- SafeBuffer.cs
- HelpEvent.cs
- DrawingVisual.cs
- _HeaderInfo.cs
- BookmarkEventArgs.cs