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
- CompilerGlobalScopeAttribute.cs
- OutputCacheSection.cs
- CodeArgumentReferenceExpression.cs
- TextWriterEngine.cs
- Win32PrintDialog.cs
- BrushValueSerializer.cs
- RootBrowserWindowProxy.cs
- TreeViewCancelEvent.cs
- Source.cs
- coordinatorfactory.cs
- ReadOnlyCollection.cs
- InternalBufferOverflowException.cs
- WindowsTokenRoleProvider.cs
- NegotiateStream.cs
- LambdaCompiler.cs
- DataQuery.cs
- SessionPageStatePersister.cs
- AsyncDataRequest.cs
- DataFieldCollectionEditor.cs
- CellTreeNode.cs
- SqlDataSource.cs
- EncodingInfo.cs
- ResizingMessageFilter.cs
- OdbcParameter.cs
- OleDbError.cs
- OleDbSchemaGuid.cs
- MinMaxParagraphWidth.cs
- ObjectTag.cs
- BasePattern.cs
- ReferencedAssemblyResolver.cs
- IInstanceTable.cs
- DynamicEndpoint.cs
- GCHandleCookieTable.cs
- HttpCapabilitiesBase.cs
- DbConnectionPool.cs
- RelatedPropertyManager.cs
- ResXResourceReader.cs
- InternalConfigSettingsFactory.cs
- InstanceCreationEditor.cs
- ReliableSessionBindingElement.cs
- DocumentGridContextMenu.cs
- XmlWhitespace.cs
- SingleTagSectionHandler.cs
- PageEventArgs.cs
- XmlQualifiedName.cs
- PartitionResolver.cs
- XComponentModel.cs
- DoubleLinkListEnumerator.cs
- ContentType.cs
- IOException.cs
- COM2PictureConverter.cs
- ListDictionary.cs
- ApplicationFileParser.cs
- SplitterEvent.cs
- SiteMap.cs
- GeometryHitTestParameters.cs
- CustomAttribute.cs
- EventLogEntryCollection.cs
- SharedConnectionWorkflowTransactionService.cs
- WebPartVerb.cs
- SerializationObjectManager.cs
- ServiceHostingEnvironment.cs
- ApplicationManager.cs
- TextTreeInsertElementUndoUnit.cs
- EditorZone.cs
- EraserBehavior.cs
- WmpBitmapDecoder.cs
- InfoCardAsymmetricCrypto.cs
- SerializationAttributes.cs
- ColorAnimationUsingKeyFrames.cs
- WrappedIUnknown.cs
- SrgsToken.cs
- FontInfo.cs
- CodeStatement.cs
- XmlDataSource.cs
- InputScope.cs
- TextTreeDeleteContentUndoUnit.cs
- ByteAnimationBase.cs
- OLEDB_Util.cs
- LocalizableAttribute.cs
- ErrorRuntimeConfig.cs
- Matrix3DValueSerializer.cs
- ParagraphResult.cs
- SystemIPInterfaceProperties.cs
- HtmlShimManager.cs
- DataGridViewCellCollection.cs
- ThrowOnMultipleAssignment.cs
- SiteMapNodeItem.cs
- MultilineStringConverter.cs
- GridViewRowCollection.cs
- TypeToArgumentTypeConverter.cs
- GridViewAutomationPeer.cs
- SynchronizedInputAdaptor.cs
- CssStyleCollection.cs
- AssertSection.cs
- ResourceExpression.cs
- PropertyInfoSet.cs
- WebControl.cs
- UTF32Encoding.cs
- SmiSettersStream.cs