Code:
/ 4.0 / 4.0 / 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. /// ///// 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
- RIPEMD160Managed.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- GeneralTransformGroup.cs
- UIElement.cs
- ListMarkerLine.cs
- CommandConverter.cs
- DataRowCollection.cs
- ParserHooks.cs
- CodeGenerator.cs
- HttpException.cs
- MergeFilterQuery.cs
- WebPartConnectionsEventArgs.cs
- PlainXmlWriter.cs
- Function.cs
- DataGridRow.cs
- RoutedCommand.cs
- StructuredProperty.cs
- AutomationTextAttribute.cs
- Helper.cs
- WindowExtensionMethods.cs
- CommonRemoteMemoryBlock.cs
- AnnotationResourceChangedEventArgs.cs
- GridViewDeletedEventArgs.cs
- TableRowGroupCollection.cs
- TargetControlTypeAttribute.cs
- ISessionStateStore.cs
- RequestCacheValidator.cs
- WindowsAltTab.cs
- DoubleLinkList.cs
- DesignerTransaction.cs
- RoleServiceManager.cs
- Object.cs
- DbgCompiler.cs
- EnterpriseServicesHelper.cs
- EpmCustomContentDeSerializer.cs
- BrowserCapabilitiesFactoryBase.cs
- PropertyFilterAttribute.cs
- SecurityContext.cs
- MenuCommand.cs
- ProbeDuplex11AsyncResult.cs
- DependencyPropertyDescriptor.cs
- WebCategoryAttribute.cs
- ItemChangedEventArgs.cs
- XmlSerializerAssemblyAttribute.cs
- Enum.cs
- XmlNodeReader.cs
- SamlAudienceRestrictionCondition.cs
- TemplatedAdorner.cs
- HttpAsyncResult.cs
- OdbcCommandBuilder.cs
- EntityContainerRelationshipSet.cs
- ShapingWorkspace.cs
- ColumnHeaderCollectionEditor.cs
- CodeGen.cs
- JpegBitmapDecoder.cs
- Margins.cs
- ConfigurationLocation.cs
- XsltContext.cs
- ProfilePropertySettingsCollection.cs
- Composition.cs
- XPathAncestorQuery.cs
- TransactedBatchContext.cs
- MenuEventArgs.cs
- StaticTextPointer.cs
- EntityObject.cs
- RemoveStoryboard.cs
- ClientClassGenerator.cs
- COM2PropertyDescriptor.cs
- XmlAnyElementAttribute.cs
- Stylesheet.cs
- HostingEnvironmentSection.cs
- XPathNavigatorReader.cs
- Stroke.cs
- PropertyGridDesigner.cs
- ExpressionCopier.cs
- OAVariantLib.cs
- DetailsView.cs
- SqlServer2KCompatibilityAnnotation.cs
- OleDbConnectionInternal.cs
- PointLight.cs
- ZipIOLocalFileHeader.cs
- EmptyTextWriter.cs
- SqlStream.cs
- PictureBox.cs
- COM2IProvidePropertyBuilderHandler.cs
- Utility.cs
- CircleHotSpot.cs
- FileDocument.cs
- Listbox.cs
- OLEDB_Util.cs
- XmlRawWriter.cs
- AdornerPresentationContext.cs
- ValidationErrorEventArgs.cs
- Symbol.cs
- XPathDescendantIterator.cs
- NumberAction.cs
- ListControlStringCollectionEditor.cs
- Int32AnimationBase.cs
- TypeReference.cs
- Attributes.cs