Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DynamicQueryStringParameter.cs
- MdiWindowListStrip.cs
- OleDbParameterCollection.cs
- BaseTemplatedMobileComponentEditor.cs
- WebException.cs
- SurrogateSelector.cs
- HelpEvent.cs
- FusionWrap.cs
- IndicFontClient.cs
- DetailsViewPagerRow.cs
- WebPartChrome.cs
- _CookieModule.cs
- AsymmetricKeyExchangeFormatter.cs
- BuildResultCache.cs
- ScriptModule.cs
- LassoSelectionBehavior.cs
- ThreadPoolTaskScheduler.cs
- Misc.cs
- RangeValidator.cs
- DataTableMapping.cs
- StateManagedCollection.cs
- Polygon.cs
- RangeContentEnumerator.cs
- TemplateBaseAction.cs
- ContainerControlDesigner.cs
- StringSorter.cs
- ProfileSection.cs
- Attributes.cs
- DbParameterCollectionHelper.cs
- TTSEngineProxy.cs
- EncodingDataItem.cs
- BaseParser.cs
- XmlUtil.cs
- ApplicationDirectory.cs
- XsltLoader.cs
- EntityClientCacheEntry.cs
- MessageQueueTransaction.cs
- TileBrush.cs
- VisualStyleInformation.cs
- SvcFileManager.cs
- PerfCounters.cs
- SiteMapProvider.cs
- LogPolicy.cs
- MimeWriter.cs
- TemplateParser.cs
- AutomationTextAttribute.cs
- SymbolType.cs
- streamingZipPartStream.cs
- WsatServiceCertificate.cs
- VScrollProperties.cs
- SettingsContext.cs
- RowParagraph.cs
- XmlSchemaSubstitutionGroup.cs
- XpsS0ValidatingLoader.cs
- DataGridToolTip.cs
- BinaryFormatter.cs
- PropertyConverter.cs
- BatchStream.cs
- CaseExpr.cs
- HttpVersion.cs
- XPathArrayIterator.cs
- AppliedDeviceFiltersDialog.cs
- ReferentialConstraint.cs
- NetMsmqBinding.cs
- CodeMemberEvent.cs
- DebuggerAttributes.cs
- TranslateTransform.cs
- Size3D.cs
- PathNode.cs
- DbTransaction.cs
- BamlLocalizer.cs
- FormViewRow.cs
- CharKeyFrameCollection.cs
- StringConverter.cs
- MessageDecoder.cs
- TabletDeviceInfo.cs
- DelimitedListTraceListener.cs
- DeviceContexts.cs
- BatchParser.cs
- Preprocessor.cs
- NameTable.cs
- OrderingInfo.cs
- EntityDesignerBuildProvider.cs
- StateItem.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- QuaternionAnimationUsingKeyFrames.cs
- odbcmetadatacollectionnames.cs
- SqlTriggerContext.cs
- ToolstripProfessionalRenderer.cs
- TemplateComponentConnector.cs
- _NestedMultipleAsyncResult.cs
- TracingConnectionInitiator.cs
- DictionaryItemsCollection.cs
- DataGridState.cs
- XPathNodeHelper.cs
- HScrollProperties.cs
- SHA512Managed.cs
- TemplateBindingExtension.cs
- StreamSecurityUpgradeAcceptorBase.cs
- ForceCopyBuildProvider.cs