Code:
/ 4.0 / 4.0 / untmp / 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. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ConvertersCollection.cs
- CrossSiteScriptingValidation.cs
- DictionaryEntry.cs
- DataGridViewAdvancedBorderStyle.cs
- LabelDesigner.cs
- DbParameterHelper.cs
- ToolStripItemEventArgs.cs
- ConnectionConsumerAttribute.cs
- ProjectionPlan.cs
- CacheMemory.cs
- PowerStatus.cs
- WebPartVerb.cs
- SqlUtils.cs
- XsdDuration.cs
- CodeMethodReturnStatement.cs
- RichTextBoxConstants.cs
- BlockingCollection.cs
- FormattedTextSymbols.cs
- PublisherMembershipCondition.cs
- CodeAttributeDeclarationCollection.cs
- FactoryId.cs
- DifferencingCollection.cs
- Attributes.cs
- WindowsScrollBar.cs
- BitmapFrame.cs
- LoginName.cs
- XmlRawWriter.cs
- __FastResourceComparer.cs
- XmlSchemaImporter.cs
- HyperLinkStyle.cs
- NativeBuffer.cs
- SqlDataSourceConfigureSortForm.cs
- DecimalKeyFrameCollection.cs
- MarkupCompilePass2.cs
- RuleProcessor.cs
- XmlHierarchicalDataSourceView.cs
- ResolveDuplexCD1AsyncResult.cs
- NullRuntimeConfig.cs
- TextInfo.cs
- DetailsViewInsertEventArgs.cs
- UDPClient.cs
- QueryStringParameter.cs
- WebPartsPersonalizationAuthorization.cs
- BaseDataList.cs
- HostingEnvironment.cs
- KeyedHashAlgorithm.cs
- LinearGradientBrush.cs
- StructuredTypeEmitter.cs
- FilteredReadOnlyMetadataCollection.cs
- ThicknessConverter.cs
- PriorityRange.cs
- XmlArrayItemAttributes.cs
- ScalarType.cs
- UpdateTranslator.cs
- ArrangedElementCollection.cs
- LineInfo.cs
- BinHexEncoding.cs
- SetterBase.cs
- PrintPreviewDialog.cs
- TextProperties.cs
- MetaModel.cs
- DeviceContext2.cs
- KeyProperty.cs
- Transform3DCollection.cs
- CustomErrorCollection.cs
- HMACSHA512.cs
- EventHandlersStore.cs
- EventLogPermission.cs
- MappingException.cs
- PropertyReferenceSerializer.cs
- FixUpCollection.cs
- LiteralTextContainerControlBuilder.cs
- XmlUrlEditor.cs
- CompilerError.cs
- CompositeControl.cs
- InternalPermissions.cs
- FontFamily.cs
- Compress.cs
- IncrementalReadDecoders.cs
- UserControlBuildProvider.cs
- GPPOINTF.cs
- TraceUtils.cs
- BitmapPalettes.cs
- WriteableBitmap.cs
- OptimisticConcurrencyException.cs
- GridViewRowCollection.cs
- RIPEMD160.cs
- TransformerTypeCollection.cs
- PartialTrustHelpers.cs
- PolyLineSegmentFigureLogic.cs
- EventData.cs
- ChtmlTextBoxAdapter.cs
- TrackingMemoryStream.cs
- AssociationSet.cs
- IgnoreFlushAndCloseStream.cs
- SspiHelper.cs
- CommonDialog.cs
- DrawingAttributesDefaultValueFactory.cs
- NullableDoubleAverageAggregationOperator.cs
- EmptyWithCancelationCheckWorkItem.cs