Code:
/ DotNET / DotNET / 8.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
- Method.cs
- basemetadatamappingvisitor.cs
- QuaternionRotation3D.cs
- DESCryptoServiceProvider.cs
- InfoCardMasterKey.cs
- EditorPartCollection.cs
- XmlILIndex.cs
- Control.cs
- SqlTriggerAttribute.cs
- SoundPlayer.cs
- ErrorStyle.cs
- Misc.cs
- InputGestureCollection.cs
- ZipIOCentralDirectoryBlock.cs
- ViewCellSlot.cs
- HijriCalendar.cs
- XNodeNavigator.cs
- Polygon.cs
- PointCollection.cs
- BevelBitmapEffect.cs
- SynchronizedChannelCollection.cs
- XPathNavigatorKeyComparer.cs
- Encoding.cs
- printdlgexmarshaler.cs
- GeneralTransform3DGroup.cs
- RadioButton.cs
- TransactionScope.cs
- BamlResourceDeserializer.cs
- ObjectTag.cs
- Annotation.cs
- ThreadStateException.cs
- FlowDocumentView.cs
- MouseGestureConverter.cs
- ProfileEventArgs.cs
- XmlAttributeAttribute.cs
- HostVisual.cs
- InfoCardSymmetricAlgorithm.cs
- XmlCountingReader.cs
- DesignerDataStoredProcedure.cs
- FileIOPermission.cs
- EncodingTable.cs
- RowParagraph.cs
- Int32AnimationBase.cs
- QueueProcessor.cs
- SimpleHandlerFactory.cs
- AutomationPropertyInfo.cs
- ADRoleFactory.cs
- RowsCopiedEventArgs.cs
- AsyncOperationManager.cs
- WebBrowser.cs
- PersonalizablePropertyEntry.cs
- ColorMatrix.cs
- KeyFrames.cs
- columnmapfactory.cs
- Baml2006ReaderSettings.cs
- DummyDataSource.cs
- _SpnDictionary.cs
- CacheModeValueSerializer.cs
- ProbeDuplex11AsyncResult.cs
- XmlMtomReader.cs
- Peer.cs
- Axis.cs
- KeyMatchBuilder.cs
- ContentFileHelper.cs
- DateTimeOffset.cs
- ContentControl.cs
- SecurityContextSecurityToken.cs
- HtmlProps.cs
- CanExpandCollapseAllConverter.cs
- ImportDesigner.xaml.cs
- PeerServiceMessageContracts.cs
- TableRowCollection.cs
- SystemIPv4InterfaceProperties.cs
- BitmapEffectvisualstate.cs
- ForceCopyBuildProvider.cs
- SplineQuaternionKeyFrame.cs
- Model3D.cs
- HTMLTextWriter.cs
- WasEndpointConfigContainer.cs
- RoleManagerSection.cs
- Component.cs
- FontUnit.cs
- ClientSettings.cs
- TimeoutException.cs
- ValidationError.cs
- XmlNodeComparer.cs
- ProviderBase.cs
- IssuedTokenClientBehaviorsElement.cs
- DataStorage.cs
- WebContext.cs
- panel.cs
- AutoGeneratedField.cs
- ScriptHandlerFactory.cs
- CodeRegionDirective.cs
- SplitContainerDesigner.cs
- DefaultEventAttribute.cs
- WindowsTooltip.cs
- DataGridViewHitTestInfo.cs
- BaseCodePageEncoding.cs
- MediaPlayer.cs