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
- FrugalList.cs
- ObjectItemLoadingSessionData.cs
- XmlTextReader.cs
- DelegateInArgument.cs
- ObjectResult.cs
- WebConfigurationHost.cs
- Select.cs
- DynamicMetaObject.cs
- Header.cs
- IsolatedStorage.cs
- SchemaInfo.cs
- MasterPageBuildProvider.cs
- WebPartConnectionsConfigureVerb.cs
- IndexingContentUnit.cs
- PathNode.cs
- CriticalFinalizerObject.cs
- EventBookmark.cs
- Int64AnimationBase.cs
- NullableDoubleSumAggregationOperator.cs
- BinaryQueryOperator.cs
- TextEditorLists.cs
- WSIdentityFaultException.cs
- SafeEventLogReadHandle.cs
- CryptoApi.cs
- DoubleLink.cs
- ClientTargetCollection.cs
- ImportFileRequest.cs
- BookmarkTable.cs
- Terminate.cs
- PropertyCollection.cs
- ComponentEditorPage.cs
- PEFileReader.cs
- HttpGetProtocolImporter.cs
- MDIClient.cs
- IBuiltInEvidence.cs
- KeyBinding.cs
- Annotation.cs
- ExceptionTrace.cs
- HttpHandlersSection.cs
- XmlSchemaParticle.cs
- recordstate.cs
- MobileListItemCollection.cs
- TargetControlTypeCache.cs
- TextElement.cs
- CodeTypeReferenceExpression.cs
- SettingsPropertyNotFoundException.cs
- SafeArrayRankMismatchException.cs
- TextTrailingCharacterEllipsis.cs
- EntityRecordInfo.cs
- RequestQueue.cs
- UnsafeNativeMethods.cs
- UniqueConstraint.cs
- WinEventTracker.cs
- RemotingConfiguration.cs
- MappingMetadataHelper.cs
- ViewPort3D.cs
- IgnoreDeviceFilterElementCollection.cs
- LayoutSettings.cs
- SubMenuStyleCollection.cs
- TypedElement.cs
- SoapAttributeAttribute.cs
- DockPattern.cs
- LocationReferenceEnvironment.cs
- TemplateAction.cs
- ServiceHttpModule.cs
- TextSimpleMarkerProperties.cs
- XamlBrushSerializer.cs
- AccessKeyManager.cs
- InheritedPropertyChangedEventArgs.cs
- PaginationProgressEventArgs.cs
- CopyOnWriteList.cs
- Transform.cs
- BaseCodeDomTreeGenerator.cs
- SqlBuilder.cs
- ScalarConstant.cs
- DoubleAnimationClockResource.cs
- HtmlContainerControl.cs
- CodeMemberMethod.cs
- SpecialTypeDataContract.cs
- HideDisabledControlAdapter.cs
- SerializationInfo.cs
- SparseMemoryStream.cs
- HtmlTitle.cs
- ToolStripRendererSwitcher.cs
- PtsHelper.cs
- SqlConnectionStringBuilder.cs
- SimpleType.cs
- TextParentUndoUnit.cs
- SqlDataSourceCommandEventArgs.cs
- X509DefaultServiceCertificateElement.cs
- NativeMethods.cs
- SpeechEvent.cs
- OleDbReferenceCollection.cs
- Events.cs
- DataViewManager.cs
- BindingContext.cs
- SmiGettersStream.cs
- PersonalizablePropertyEntry.cs
- HttpCookieCollection.cs
- PartManifestEntry.cs