Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- InvokeHandlers.cs
- WizardPanelChangingEventArgs.cs
- odbcmetadatacolumnnames.cs
- SessionPageStatePersister.cs
- DifferencingCollection.cs
- ObjectDataSource.cs
- CurrentTimeZone.cs
- JoinTreeNode.cs
- KeyFrames.cs
- QilChoice.cs
- MatrixStack.cs
- XmlSerializationReader.cs
- MultiView.cs
- CodeDesigner.cs
- SqlBuffer.cs
- CompilerInfo.cs
- RoutedUICommand.cs
- ReadOnlyPropertyMetadata.cs
- XMLSyntaxException.cs
- LockCookie.cs
- TextBlockAutomationPeer.cs
- DesignerActionHeaderItem.cs
- TextEncodedRawTextWriter.cs
- QuaternionAnimationUsingKeyFrames.cs
- XmlSchemaRedefine.cs
- TrustManagerMoreInformation.cs
- NumericUpDown.cs
- Int32CAMarshaler.cs
- Keywords.cs
- Root.cs
- PopupRoot.cs
- SchemaNotation.cs
- FreezableDefaultValueFactory.cs
- ValueTypeFixupInfo.cs
- CharAnimationUsingKeyFrames.cs
- Hex.cs
- DispatchChannelSink.cs
- SqlLiftWhereClauses.cs
- DataGridViewSortCompareEventArgs.cs
- DesignerVerbCollection.cs
- QueryCreatedEventArgs.cs
- SocketAddress.cs
- EndSelectCardRequest.cs
- TransformerConfigurationWizardBase.cs
- NameValuePair.cs
- RenderDataDrawingContext.cs
- ConvertersCollection.cs
- IgnoreFlushAndCloseStream.cs
- ManagementBaseObject.cs
- _SecureChannel.cs
- ClientBuildManagerCallback.cs
- DrawingAttributeSerializer.cs
- Encoder.cs
- WindowsSpinner.cs
- MsmqIntegrationInputChannel.cs
- WindowsAuthenticationEventArgs.cs
- MimeMultiPart.cs
- SchemaNames.cs
- StandardBindingOptionalReliableSessionElement.cs
- NonParentingControl.cs
- DriveNotFoundException.cs
- MasterPageBuildProvider.cs
- DispatcherOperation.cs
- PrivilegeNotHeldException.cs
- SevenBitStream.cs
- HttpProcessUtility.cs
- UserControl.cs
- HMACSHA384.cs
- CompilerError.cs
- SafeThreadHandle.cs
- RangeContentEnumerator.cs
- DataColumnMapping.cs
- AttachedAnnotationChangedEventArgs.cs
- ChildrenQuery.cs
- DiagnosticsConfigurationHandler.cs
- NegatedCellConstant.cs
- DbDataSourceEnumerator.cs
- XmlSchemaDocumentation.cs
- PathFigure.cs
- SByteStorage.cs
- LinearKeyFrames.cs
- ViewEventArgs.cs
- PreservationFileWriter.cs
- LocalServiceSecuritySettingsElement.cs
- SessionStateModule.cs
- HttpListenerResponse.cs
- DotAtomReader.cs
- LogicalExpressionTypeConverter.cs
- UseAttributeSetsAction.cs
- QueryStringHandler.cs
- NotifyIcon.cs
- WebPartCancelEventArgs.cs
- DataControlLinkButton.cs
- WindowsFormsHostAutomationPeer.cs
- __TransparentProxy.cs
- BatchParser.cs
- SqlParameterCollection.cs
- RSACryptoServiceProvider.cs
- PersistenceIOParticipant.cs
- EntryIndex.cs