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
- XPathNavigatorReader.cs
- Walker.cs
- PolicyException.cs
- ClientOptions.cs
- SqlXmlStorage.cs
- SizeAnimationUsingKeyFrames.cs
- AuthenticationConfig.cs
- TrackingDataItemValue.cs
- RNGCryptoServiceProvider.cs
- CustomTypeDescriptor.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- JsonWriter.cs
- HandlerMappingMemo.cs
- BinaryWriter.cs
- RequestResponse.cs
- ProgressBarBrushConverter.cs
- webbrowsersite.cs
- SchemaNamespaceManager.cs
- DynamicILGenerator.cs
- URIFormatException.cs
- MatrixCamera.cs
- ExchangeUtilities.cs
- DataViewListener.cs
- TypeHelper.cs
- OracleInfoMessageEventArgs.cs
- CalendarAutoFormat.cs
- WmpBitmapEncoder.cs
- StatusBar.cs
- CellQuery.cs
- uribuilder.cs
- COSERVERINFO.cs
- PageResolution.cs
- DataSourceCacheDurationConverter.cs
- LogWriteRestartAreaState.cs
- UIAgentAsyncBeginRequest.cs
- CharEnumerator.cs
- StylusPointPropertyInfo.cs
- UInt64Storage.cs
- FormsAuthenticationUser.cs
- DefaultProxySection.cs
- SimpleHandlerFactory.cs
- columnmapfactory.cs
- SqlNode.cs
- HttpVersion.cs
- ThemeConfigurationDialog.cs
- ZipIOModeEnforcingStream.cs
- ExpressionConverter.cs
- ColumnMapTranslator.cs
- SQLBinary.cs
- Size.cs
- Calendar.cs
- GridItem.cs
- HttpsChannelFactory.cs
- KeyTime.cs
- MetadataItemEmitter.cs
- Matrix3DValueSerializer.cs
- ObjectDataSourceEventArgs.cs
- StringBlob.cs
- ImageBrush.cs
- FileDialogPermission.cs
- HtmlInputSubmit.cs
- EasingFunctionBase.cs
- DropShadowEffect.cs
- ToolBar.cs
- basecomparevalidator.cs
- AccessibleObject.cs
- ContainsRowNumberChecker.cs
- ClosableStream.cs
- SystemThemeKey.cs
- RoutedEvent.cs
- MessageSecurityProtocol.cs
- SqlCommandBuilder.cs
- BaseTemplateBuildProvider.cs
- SelectionRange.cs
- TextStore.cs
- DataGridViewCellValueEventArgs.cs
- MenuEventArgs.cs
- DocumentViewerBaseAutomationPeer.cs
- InstallHelper.cs
- FlowDocumentScrollViewer.cs
- ActionFrame.cs
- NetNamedPipeSecurityMode.cs
- TypeBuilder.cs
- DataGridViewLinkCell.cs
- NoClickablePointException.cs
- XmlElementElement.cs
- FigureHelper.cs
- UseLicense.cs
- PropertyCollection.cs
- NamespaceInfo.cs
- ConnectionPointGlyph.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- DesignerDataRelationship.cs
- SchemaCollectionPreprocessor.cs
- OpacityConverter.cs
- ModuleConfigurationInfo.cs
- EmptyStringExpandableObjectConverter.cs
- ScrollData.cs
- WsatConfiguration.cs
- SingleSelectRootGridEntry.cs