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
- VisualStyleRenderer.cs
- MimeMultiPart.cs
- HostVisual.cs
- RsaKeyGen.cs
- TreeViewHitTestInfo.cs
- Odbc32.cs
- TableLayoutRowStyleCollection.cs
- NativeMethods.cs
- ZipIOCentralDirectoryBlock.cs
- IOException.cs
- LabelInfo.cs
- SafeIUnknown.cs
- ZeroOpNode.cs
- KeyboardEventArgs.cs
- EntityDataSourceContextCreatedEventArgs.cs
- RtType.cs
- KeyEventArgs.cs
- DeclaredTypeElementCollection.cs
- MSAANativeProvider.cs
- CheckBoxStandardAdapter.cs
- Graphics.cs
- MailWebEventProvider.cs
- MessageBuilder.cs
- WorkflowOwnershipException.cs
- DoubleMinMaxAggregationOperator.cs
- GridViewDeletedEventArgs.cs
- NavigationWindow.cs
- XmlMessageFormatter.cs
- FacetValueContainer.cs
- EncodingDataItem.cs
- TileBrush.cs
- CallContext.cs
- MetricEntry.cs
- FragmentNavigationEventArgs.cs
- WebDisplayNameAttribute.cs
- FixedSOMFixedBlock.cs
- PagePropertiesChangingEventArgs.cs
- ButtonChrome.cs
- OutputCacheProfileCollection.cs
- ImageUrlEditor.cs
- ResourceReferenceKeyNotFoundException.cs
- ExpanderAutomationPeer.cs
- CommandHelpers.cs
- HostExecutionContextManager.cs
- CodeSnippetTypeMember.cs
- LinqDataSourceDeleteEventArgs.cs
- UnmanagedMemoryStreamWrapper.cs
- HelloOperation11AsyncResult.cs
- NGCSerializationManager.cs
- SiteMapProvider.cs
- ImmComposition.cs
- Canvas.cs
- Path.cs
- WrappedOptions.cs
- DataGridTable.cs
- ModuleConfigurationInfo.cs
- util.cs
- TabControl.cs
- TemplatePropertyEntry.cs
- DataKeyCollection.cs
- SqlTypeSystemProvider.cs
- DateTimeFormat.cs
- QueryOutputWriterV1.cs
- DataTableClearEvent.cs
- SafeArrayRankMismatchException.cs
- AbstractDataSvcMapFileLoader.cs
- ContainerUtilities.cs
- X509CertificateInitiatorServiceCredential.cs
- ISAPIRuntime.cs
- XmlProcessingInstruction.cs
- HostedTransportConfigurationBase.cs
- StateWorkerRequest.cs
- PageBuildProvider.cs
- SqlStatistics.cs
- ThreadStaticAttribute.cs
- DataSourceXmlClassAttribute.cs
- HandledEventArgs.cs
- AssemblyResourceLoader.cs
- ElementUtil.cs
- ThreadSafeList.cs
- WindowsIdentity.cs
- FileClassifier.cs
- TemplateBuilder.cs
- InheritedPropertyChangedEventArgs.cs
- BufferedConnection.cs
- BufferedReadStream.cs
- TranslateTransform3D.cs
- EdmEntityTypeAttribute.cs
- TextTreeRootTextBlock.cs
- RemotingConfigParser.cs
- HotSpot.cs
- ModuleBuilderData.cs
- Unit.cs
- CacheRequest.cs
- CodeNamespaceImportCollection.cs
- ObjectQuery_EntitySqlExtensions.cs
- XmlReflectionImporter.cs
- NamespaceInfo.cs
- ItemsControlAutomationPeer.cs
- CqlErrorHelper.cs