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
- ISAPIWorkerRequest.cs
- PolicyStatement.cs
- GridViewDeleteEventArgs.cs
- Tile.cs
- ApplicationHost.cs
- StructuredType.cs
- CompilerScopeManager.cs
- ClassGenerator.cs
- XLinq.cs
- SQLInt16Storage.cs
- UnknownBitmapEncoder.cs
- SessionStateContainer.cs
- ErrorTableItemStyle.cs
- CompilationSection.cs
- NativeMethodsCLR.cs
- documentation.cs
- ADConnectionHelper.cs
- FindCriteriaCD1.cs
- BitmapEffectOutputConnector.cs
- _CookieModule.cs
- PtsHost.cs
- CheckBoxStandardAdapter.cs
- SimplePropertyEntry.cs
- ProcessModuleCollection.cs
- ExponentialEase.cs
- BindStream.cs
- SymmetricAlgorithm.cs
- WorkflowDataContext.cs
- MenuItemAutomationPeer.cs
- SystemIcmpV6Statistics.cs
- Preprocessor.cs
- SqlDataRecord.cs
- CLRBindingWorker.cs
- DateBoldEvent.cs
- WebPartDisplayModeCollection.cs
- ImageList.cs
- FixedBufferAttribute.cs
- FrugalMap.cs
- XmlSchemaException.cs
- StreamUpdate.cs
- SQLByteStorage.cs
- X509RecipientCertificateClientElement.cs
- XmlIlGenerator.cs
- PermissionSet.cs
- TypeContext.cs
- Task.cs
- TypeConverters.cs
- DesignerUtils.cs
- __ComObject.cs
- RandomNumberGenerator.cs
- CustomLineCap.cs
- ReferentialConstraint.cs
- CompiledQuery.cs
- SocketAddress.cs
- QilList.cs
- XamlToRtfParser.cs
- LicenseManager.cs
- ConstantSlot.cs
- CompareValidator.cs
- CodeStatementCollection.cs
- PartitionedDataSource.cs
- SystemParameters.cs
- BooleanFunctions.cs
- GridViewDeleteEventArgs.cs
- RoutedEventHandlerInfo.cs
- RegexStringValidator.cs
- NotificationContext.cs
- DescendantBaseQuery.cs
- SecurityPolicySection.cs
- CookieProtection.cs
- DbConnectionInternal.cs
- LeaseManager.cs
- ContainerActivationHelper.cs
- EmptyImpersonationContext.cs
- NetTcpBindingElement.cs
- UidManager.cs
- BrowserCapabilitiesCompiler.cs
- DivideByZeroException.cs
- RadioButton.cs
- HtmlLiteralTextAdapter.cs
- figurelengthconverter.cs
- ProxyWebPart.cs
- Pen.cs
- CleanUpVirtualizedItemEventArgs.cs
- DataGridViewAdvancedBorderStyle.cs
- TypeUsage.cs
- ContainerFilterService.cs
- UnmanagedMemoryStreamWrapper.cs
- ManipulationStartedEventArgs.cs
- AliasedSlot.cs
- DataContractFormatAttribute.cs
- Point3D.cs
- XmlWrappingReader.cs
- Brush.cs
- HttpModulesSection.cs
- SuppressIldasmAttribute.cs
- XhtmlBasicCalendarAdapter.cs
- DictionarySectionHandler.cs
- EpmContentSerializerBase.cs
- CryptoStream.cs