Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / DragEvent.cs / 1305376 / 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. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WinFormsUtils.cs
- HeaderPanel.cs
- SplitContainerDesigner.cs
- _NetRes.cs
- ImageSourceValueSerializer.cs
- SqlUtil.cs
- PropVariant.cs
- ZeroOpNode.cs
- ReferencedAssembly.cs
- AdRotatorDesigner.cs
- CompilerErrorCollection.cs
- GPPOINTF.cs
- RemotingConfiguration.cs
- SHA1Managed.cs
- ContextMenuStripGroupCollection.cs
- StaticFileHandler.cs
- DebugHandleTracker.cs
- TypefaceMetricsCache.cs
- TextServicesDisplayAttributePropertyRanges.cs
- SecurityPermission.cs
- LoadedOrUnloadedOperation.cs
- Cursor.cs
- TerminateSequence.cs
- LinkedList.cs
- SelfIssuedAuthRSAPKCS1SignatureDeformatter.cs
- InputLanguageProfileNotifySink.cs
- AuthenticateEventArgs.cs
- TextTreeInsertElementUndoUnit.cs
- Utility.cs
- StretchValidation.cs
- InteropBitmapSource.cs
- SQLDecimal.cs
- PolyBezierSegment.cs
- TrustManagerMoreInformation.cs
- ContainerTracking.cs
- OutputCacheSettingsSection.cs
- DictionaryEntry.cs
- SRDisplayNameAttribute.cs
- SQLRoleProvider.cs
- SqlFunctionAttribute.cs
- DirectionalLight.cs
- XPathMessageFilterElementComparer.cs
- ModelTreeEnumerator.cs
- DataGrid.cs
- DataGridViewColumnCollection.cs
- SessionIDManager.cs
- DataListGeneralPage.cs
- MsmqIntegrationBindingElement.cs
- HuffModule.cs
- TextCompositionManager.cs
- WorkingDirectoryEditor.cs
- GridItemProviderWrapper.cs
- SoapSchemaImporter.cs
- SerializationInfo.cs
- BrowserCapabilitiesCompiler.cs
- ProfileEventArgs.cs
- RoleBoolean.cs
- ConfigXmlDocument.cs
- WmlObjectListAdapter.cs
- PolicyValidator.cs
- SqlDataSourceConfigureFilterForm.cs
- CachingHintValidation.cs
- InheritedPropertyChangedEventArgs.cs
- cookie.cs
- LeftCellWrapper.cs
- AttributeAction.cs
- TextRangeAdaptor.cs
- ToolZone.cs
- Pen.cs
- TreeWalker.cs
- PropertyTabAttribute.cs
- CustomDictionarySources.cs
- grammarelement.cs
- HttpListener.cs
- ObjectStateFormatter.cs
- PrimitiveSchema.cs
- MultipleViewProviderWrapper.cs
- ProcessModelSection.cs
- sitestring.cs
- GeometryCollection.cs
- ListSourceHelper.cs
- ToolStripContentPanelRenderEventArgs.cs
- RsaEndpointIdentity.cs
- Boolean.cs
- Constraint.cs
- FilterableAttribute.cs
- SmiContextFactory.cs
- NameValuePair.cs
- SecUtil.cs
- ADConnectionHelper.cs
- OracleParameterBinding.cs
- ToolboxCategoryItems.cs
- XmlSchemaInfo.cs
- CacheDependency.cs
- AmbientLight.cs
- ControllableStoryboardAction.cs
- TextRunCache.cs
- StringDictionary.cs
- StreamInfo.cs
- AsmxEndpointPickerExtension.cs