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
- NullableDecimalSumAggregationOperator.cs
- XhtmlBasicLinkAdapter.cs
- StorageFunctionMapping.cs
- XmlTextEncoder.cs
- ArgIterator.cs
- AnnotationHelper.cs
- ClientSettingsSection.cs
- ErrorFormatter.cs
- RSAPKCS1KeyExchangeFormatter.cs
- NativeMethods.cs
- TextRunCache.cs
- Debug.cs
- FontEmbeddingManager.cs
- ObjectCacheHost.cs
- ResourceManager.cs
- TextRangeEditLists.cs
- XmlUtil.cs
- PrimitiveSchema.cs
- QueryableFilterRepeater.cs
- _HeaderInfo.cs
- CssClassPropertyAttribute.cs
- SaveFileDialogDesigner.cs
- IriParsingElement.cs
- XmlHelper.cs
- EntityTypeEmitter.cs
- RadioButtonBaseAdapter.cs
- SessionStateSection.cs
- PropertyEmitterBase.cs
- GetWinFXPath.cs
- SettingsProviderCollection.cs
- VarRefManager.cs
- NullRuntimeConfig.cs
- OleDbSchemaGuid.cs
- ScriptDescriptor.cs
- MTConfigUtil.cs
- EntityDataSourceState.cs
- RequestCacheManager.cs
- PLINQETWProvider.cs
- SvcMapFile.cs
- RoleManagerModule.cs
- ClientFormsAuthenticationMembershipProvider.cs
- SqlAliaser.cs
- TextRangeProviderWrapper.cs
- ReflectionUtil.cs
- ConnectionsZone.cs
- HttpException.cs
- TextTreeText.cs
- Sequence.cs
- DesignerView.Commands.cs
- TiffBitmapEncoder.cs
- BitmapFrameEncode.cs
- HttpHandlersSection.cs
- EmptyQuery.cs
- ToolStripSplitButton.cs
- SystemWebCachingSectionGroup.cs
- WorkerRequest.cs
- Style.cs
- DesignerDataSchemaClass.cs
- RoleGroup.cs
- DataSourceCache.cs
- DefaultHttpHandler.cs
- ReadOnlyCollectionBase.cs
- Inflater.cs
- ReadOnlyMetadataCollection.cs
- Suspend.cs
- DiscoveryOperationContextExtension.cs
- HtmlTable.cs
- UnionQueryOperator.cs
- DocumentPageTextView.cs
- ConnectorDragDropGlyph.cs
- LinqDataSourceSelectEventArgs.cs
- GPRECT.cs
- WindowsTitleBar.cs
- WebEventTraceProvider.cs
- DataBindingList.cs
- EntityDataSourceQueryBuilder.cs
- CharConverter.cs
- DesignerDataStoredProcedure.cs
- BufferedGraphics.cs
- AlgoModule.cs
- XmlDataContract.cs
- Vars.cs
- DispatchWrapper.cs
- SizeAnimationClockResource.cs
- VersionedStream.cs
- FileResponseElement.cs
- BufferManager.cs
- XmlSortKeyAccumulator.cs
- KeyTime.cs
- DataGridViewCheckBoxColumn.cs
- AsyncPostBackErrorEventArgs.cs
- MetadataProperty.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- WindowVisualStateTracker.cs
- ExpressionLexer.cs
- odbcmetadatafactory.cs
- EntityContainerAssociationSetEnd.cs
- UriPrefixTable.cs
- SqlGenerator.cs
- SerializationInfoEnumerator.cs