Code:
/ FX-1434 / FX-1434 / 1.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
- WorkflowExecutor.cs
- ToolStripActionList.cs
- PageCatalogPart.cs
- ReflectionTypeLoadException.cs
- ToolStripItemClickedEventArgs.cs
- InvokeMemberBinder.cs
- KeyTimeConverter.cs
- URL.cs
- TextMarkerSource.cs
- PermissionListSet.cs
- UnknownBitmapEncoder.cs
- ForeignConstraint.cs
- FormViewInsertEventArgs.cs
- DateTime.cs
- CanonicalizationDriver.cs
- ObjectDataSourceSelectingEventArgs.cs
- SqlDataSourceCommandEventArgs.cs
- WebServiceEnumData.cs
- METAHEADER.cs
- ValidationPropertyAttribute.cs
- SecurityPermission.cs
- _TimerThread.cs
- AppDomainManager.cs
- StringStorage.cs
- QueryInterceptorAttribute.cs
- InvokeHandlers.cs
- ControlTemplate.cs
- TextReader.cs
- SqlCachedBuffer.cs
- ADRoleFactoryConfiguration.cs
- EmptyCollection.cs
- KnownBoxes.cs
- CountdownEvent.cs
- Border.cs
- StackSpiller.Generated.cs
- SpotLight.cs
- UInt32Storage.cs
- GeometryHitTestParameters.cs
- DesignTimeParseData.cs
- QilScopedVisitor.cs
- InlineUIContainer.cs
- ClrPerspective.cs
- BrushValueSerializer.cs
- PropertySegmentSerializer.cs
- ServiceInfoCollection.cs
- CatalogPartDesigner.cs
- DesignSurfaceServiceContainer.cs
- DataGridItemCollection.cs
- SynchronizationLockException.cs
- Content.cs
- RefreshEventArgs.cs
- XmlNodeReader.cs
- FormsAuthenticationConfiguration.cs
- SqlRowUpdatedEvent.cs
- ListBase.cs
- Directory.cs
- ConfigurationPermission.cs
- GenericArgumentsUpdater.cs
- InstanceDataCollectionCollection.cs
- SingleStorage.cs
- SendMailErrorEventArgs.cs
- WizardPanelChangingEventArgs.cs
- Event.cs
- DocumentPageViewAutomationPeer.cs
- DataGridPagerStyle.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- UserNameSecurityTokenParameters.cs
- ResXDataNode.cs
- InkCanvasInnerCanvas.cs
- LoginUtil.cs
- DecoderFallbackWithFailureFlag.cs
- ListBox.cs
- Line.cs
- WebPartDisplayModeCancelEventArgs.cs
- Blend.cs
- ZipFileInfo.cs
- CheckableControlBaseAdapter.cs
- cookieexception.cs
- ZoneIdentityPermission.cs
- SymmetricKey.cs
- LabelDesigner.cs
- SqlInternalConnection.cs
- PostBackOptions.cs
- util.cs
- WebPartConnectionsConnectVerb.cs
- ComplexObject.cs
- Events.cs
- ChtmlPhoneCallAdapter.cs
- PagedDataSource.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- WebBrowserSiteBase.cs
- CustomErrorsSection.cs
- TemplateManager.cs
- BamlWriter.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- StorageTypeMapping.cs
- CookieHandler.cs
- ExpressionList.cs
- IndexedEnumerable.cs
- Parameter.cs