Code:
/ 4.0 / 4.0 / untmp / 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. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TCEAdapterGenerator.cs
- PageWrapper.cs
- QueryCreatedEventArgs.cs
- ServiceDescriptions.cs
- KeyFrames.cs
- SoapAttributes.cs
- MessageFilterTable.cs
- ObjectDataSourceStatusEventArgs.cs
- RoutedUICommand.cs
- ProxyWebPartConnectionCollection.cs
- ManagementInstaller.cs
- XmlSchemaSimpleContent.cs
- ControlBindingsCollection.cs
- SimpleMailWebEventProvider.cs
- WebPartConnectionsCancelVerb.cs
- Lasso.cs
- DispatchWrapper.cs
- EntitySetBaseCollection.cs
- PassportAuthenticationModule.cs
- SoapAttributeAttribute.cs
- CacheDependency.cs
- FileDialogCustomPlacesCollection.cs
- Peer.cs
- DataGridToolTip.cs
- Process.cs
- ErrorRuntimeConfig.cs
- XmlNavigatorStack.cs
- SqlDataSourceView.cs
- RuntimeEnvironment.cs
- RegexMatchCollection.cs
- WebPartVerb.cs
- DocumentGrid.cs
- FlagsAttribute.cs
- ExceptionUtil.cs
- _PooledStream.cs
- SqlIdentifier.cs
- ReturnEventArgs.cs
- ping.cs
- PublisherMembershipCondition.cs
- HttpServerUtilityBase.cs
- RequestCacheValidator.cs
- OdbcEnvironment.cs
- GiveFeedbackEvent.cs
- DataListDesigner.cs
- GeneralTransform3D.cs
- StringReader.cs
- XmlNamespaceDeclarationsAttribute.cs
- HtmlInputFile.cs
- EpmHelper.cs
- KerberosRequestorSecurityToken.cs
- InstanceDataCollection.cs
- ToolStripManager.cs
- StringDictionary.cs
- DrawingContextDrawingContextWalker.cs
- EventTrigger.cs
- AudioException.cs
- UriTemplateTrieLocation.cs
- OracleParameterCollection.cs
- EmptyEnumerable.cs
- XappLauncher.cs
- TableCellCollection.cs
- PolicyManager.cs
- DataGridViewComboBoxCell.cs
- ControlSerializer.cs
- TemplateColumn.cs
- ScriptHandlerFactory.cs
- ModifyActivitiesPropertyDescriptor.cs
- DataGridTableCollection.cs
- ApplicationSecurityInfo.cs
- OracleBinary.cs
- PropertyToken.cs
- WindowsFormsSectionHandler.cs
- M3DUtil.cs
- MessageBox.cs
- HttpClientChannel.cs
- DeploymentExceptionMapper.cs
- ButtonColumn.cs
- MatrixAnimationUsingPath.cs
- CustomLineCap.cs
- ExtentJoinTreeNode.cs
- tooltip.cs
- WindowsAuthenticationEventArgs.cs
- CharKeyFrameCollection.cs
- WeakReferenceKey.cs
- CommentAction.cs
- BitmapEffectInput.cs
- UnsafeNativeMethods.cs
- SHA1CryptoServiceProvider.cs
- PropertyItem.cs
- XmlNodeChangedEventManager.cs
- RequestQueryProcessor.cs
- UdpReplyToBehavior.cs
- DataSourceXmlSerializationAttribute.cs
- SendSecurityHeader.cs
- ProtocolsConfiguration.cs
- GenericXmlSecurityToken.cs
- XmlWrappingReader.cs
- NotCondition.cs
- LicFileLicenseProvider.cs
- WSHttpTransportSecurityElement.cs