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
- ByteKeyFrameCollection.cs
- StylusEditingBehavior.cs
- DataGridViewColumnConverter.cs
- SafeRegistryKey.cs
- CompoundFileStreamReference.cs
- ModulesEntry.cs
- PermissionToken.cs
- PrinterSettings.cs
- TiffBitmapDecoder.cs
- ForeignConstraint.cs
- SortDescriptionCollection.cs
- Binding.cs
- ProfileGroupSettings.cs
- ViewStateModeByIdAttribute.cs
- CodeAssignStatement.cs
- WinFormsComponentEditor.cs
- MembershipValidatePasswordEventArgs.cs
- FieldTemplateUserControl.cs
- Panel.cs
- FixedHighlight.cs
- InnerItemCollectionView.cs
- WhitespaceRuleLookup.cs
- FixedStringLookup.cs
- CompositeFontInfo.cs
- TrustManagerPromptUI.cs
- ConfigXmlComment.cs
- RecipientIdentity.cs
- DateTimeFormatInfo.cs
- Terminate.cs
- ToolBarPanel.cs
- TypeUtil.cs
- ErrorTableItemStyle.cs
- HybridDictionary.cs
- RuntimeCompatibilityAttribute.cs
- DataGridToolTip.cs
- HMACSHA384.cs
- Pool.cs
- SiteMapDataSource.cs
- SQLStringStorage.cs
- HScrollProperties.cs
- SystemGatewayIPAddressInformation.cs
- ServiceContractGenerator.cs
- TagMapInfo.cs
- mediaclock.cs
- WorkflowApplicationException.cs
- DispatcherEventArgs.cs
- DPCustomTypeDescriptor.cs
- VectorAnimationBase.cs
- Blend.cs
- DesignTimeTemplateParser.cs
- Int16.cs
- XmlObjectSerializerReadContextComplex.cs
- TemplateKey.cs
- NamespaceExpr.cs
- XsdBuildProvider.cs
- _AutoWebProxyScriptHelper.cs
- Switch.cs
- BlurEffect.cs
- ChannelServices.cs
- PasswordDeriveBytes.cs
- XmlSchemaExporter.cs
- Metadata.cs
- WebPartEditVerb.cs
- WindowsPen.cs
- StatusBarPanelClickEvent.cs
- AppDomain.cs
- CollectionTypeElement.cs
- AppDomainAttributes.cs
- baseaxisquery.cs
- BrowsableAttribute.cs
- SqlVersion.cs
- TraceContextEventArgs.cs
- DataGridViewRowCancelEventArgs.cs
- ListSourceHelper.cs
- Operator.cs
- WindowsUpDown.cs
- DataControlPagerLinkButton.cs
- LinkDesigner.cs
- SoapSchemaMember.cs
- HierarchicalDataBoundControl.cs
- XsltOutput.cs
- GuidelineSet.cs
- BlockExpression.cs
- ConcatQueryOperator.cs
- XmlElementAttributes.cs
- AuthenticationModuleElement.cs
- Rules.cs
- ShapingEngine.cs
- OperationInvokerTrace.cs
- XmlSerializableWriter.cs
- ProviderException.cs
- UnsafeCollabNativeMethods.cs
- StorageMappingItemLoader.cs
- SystemPens.cs
- Int32AnimationBase.cs
- RequestContextBase.cs
- PenLineCapValidation.cs
- ListControl.cs
- InvalidCastException.cs
- GroupBoxAutomationPeer.cs