Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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. //------------------------------------------------------------------------------ ///// Gets or sets which drag-and-drop operations are allowed by the target of the drag event. /// ///// 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
- RegisteredScript.cs
- Table.cs
- XPathPatternBuilder.cs
- PrintingPermissionAttribute.cs
- Debugger.cs
- SecurityToken.cs
- RTLAwareMessageBox.cs
- PopupEventArgs.cs
- PageRequestManager.cs
- DataServiceQueryOfT.cs
- ServiceMemoryGates.cs
- RuntimeCompatibilityAttribute.cs
- TcpChannelHelper.cs
- RoutedEventArgs.cs
- base64Transforms.cs
- ForeignKeyConstraint.cs
- SafeSecurityHelper.cs
- SecurityTokenAuthenticator.cs
- FlowNode.cs
- SQLDateTime.cs
- ProfileServiceManager.cs
- _SingleItemRequestCache.cs
- FtpRequestCacheValidator.cs
- ResourceCategoryAttribute.cs
- InOutArgument.cs
- Crc32.cs
- HttpApplicationFactory.cs
- StylusButtonCollection.cs
- FacetDescriptionElement.cs
- SqlReferenceCollection.cs
- FusionWrap.cs
- AlphabetConverter.cs
- Array.cs
- RowUpdatingEventArgs.cs
- SessionParameter.cs
- Accessors.cs
- AsymmetricCryptoHandle.cs
- ClientTargetCollection.cs
- WizardStepBase.cs
- SemanticResultKey.cs
- Keywords.cs
- WizardSideBarListControlItemEventArgs.cs
- HtmlForm.cs
- DataSourceComponent.cs
- TextDecoration.cs
- ExecutedRoutedEventArgs.cs
- AppDomainGrammarProxy.cs
- WorkflowValidationFailedException.cs
- FontWeights.cs
- IRCollection.cs
- NumericPagerField.cs
- BuilderElements.cs
- followingquery.cs
- SystemParameters.cs
- GridViewDeleteEventArgs.cs
- MsdtcWrapper.cs
- CompressEmulationStream.cs
- ResourcesGenerator.cs
- UrlAuthFailedErrorFormatter.cs
- GradientStopCollection.cs
- ClientCultureInfo.cs
- CompleteWizardStep.cs
- WpfPayload.cs
- SafePEFileHandle.cs
- Int32Rect.cs
- SubclassTypeValidatorAttribute.cs
- ListItemConverter.cs
- LayoutSettings.cs
- KnownTypesProvider.cs
- MouseButtonEventArgs.cs
- XamlSerializer.cs
- InheritanceContextHelper.cs
- Ops.cs
- _NTAuthentication.cs
- CodeRegionDirective.cs
- EventSinkActivityDesigner.cs
- PolyQuadraticBezierSegment.cs
- GuidelineSet.cs
- InputScopeConverter.cs
- XamlSerializer.cs
- StreamInfo.cs
- StdValidatorsAndConverters.cs
- Button.cs
- cryptoapiTransform.cs
- MetadataArtifactLoaderCompositeResource.cs
- EdmProviderManifest.cs
- MemberDescriptor.cs
- namescope.cs
- ExpressionDumper.cs
- EmptyEnumerator.cs
- DataGridViewRowPrePaintEventArgs.cs
- IsolatedStorage.cs
- CdpEqualityComparer.cs
- ConsumerConnectionPointCollection.cs
- TreeViewAutomationPeer.cs
- CLSCompliantAttribute.cs
- OrthographicCamera.cs
- PageClientProxyGenerator.cs
- WsdlInspector.cs
- TreePrinter.cs