Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridItemAutomationPeer.cs
- PropertyDescriptorComparer.cs
- DataKeyArray.cs
- XmlProcessingInstruction.cs
- AutomationPropertyInfo.cs
- DemultiplexingClientMessageFormatter.cs
- remotingproxy.cs
- ColorTransformHelper.cs
- SmtpNetworkElement.cs
- TogglePatternIdentifiers.cs
- TaskbarItemInfo.cs
- SqlBooleanMismatchVisitor.cs
- CollectionViewProxy.cs
- X509Extension.cs
- CodeTypeParameterCollection.cs
- DefaultValueTypeConverter.cs
- ContentOperations.cs
- ComUdtElement.cs
- StaticTextPointer.cs
- MailBnfHelper.cs
- FileLogRecordEnumerator.cs
- SafeNativeMethods.cs
- DecoderExceptionFallback.cs
- AutomationProperty.cs
- TempEnvironment.cs
- WebPartTransformer.cs
- OptimisticConcurrencyException.cs
- TraceContextEventArgs.cs
- ActiveXHelper.cs
- SQLDecimalStorage.cs
- OrderedHashRepartitionStream.cs
- XmlSignificantWhitespace.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- DataSysAttribute.cs
- ScriptComponentDescriptor.cs
- ThreadLocal.cs
- CodeTypeDeclaration.cs
- FlowLayoutPanelDesigner.cs
- WebBrowserNavigatedEventHandler.cs
- CollectionConverter.cs
- MetadataCache.cs
- ElementHostPropertyMap.cs
- CompoundFileStreamReference.cs
- ArrayList.cs
- HtmlSelectionListAdapter.cs
- PartialCachingControl.cs
- EventSourceCreationData.cs
- UpWmlMobileTextWriter.cs
- ClientSettingsProvider.cs
- DataObjectFieldAttribute.cs
- CollectionChangedEventManager.cs
- DiscoveryClientDuplexChannel.cs
- NonSerializedAttribute.cs
- TypeViewSchema.cs
- XmlSchemaElement.cs
- TextTrailingCharacterEllipsis.cs
- FileDetails.cs
- AssemblyBuilderData.cs
- CodeRegionDirective.cs
- TextFindEngine.cs
- SimpleModelProvider.cs
- WaitForChangedResult.cs
- AuthenticationModuleElementCollection.cs
- TableCellCollection.cs
- BypassElementCollection.cs
- CultureInfoConverter.cs
- MexNamedPipeBindingCollectionElement.cs
- AttributeTable.cs
- RectKeyFrameCollection.cs
- JoinElimination.cs
- RemotingAttributes.cs
- messageonlyhwndwrapper.cs
- LogRestartAreaEnumerator.cs
- CoreSwitches.cs
- TargetPerspective.cs
- CssStyleCollection.cs
- Win32PrintDialog.cs
- TextSelection.cs
- SecurityRuntime.cs
- CodeIdentifiers.cs
- DataViewSetting.cs
- BindingsCollection.cs
- TreeViewImageKeyConverter.cs
- EnumCodeDomSerializer.cs
- Stack.cs
- ActivityCodeGenerator.cs
- Span.cs
- Interlocked.cs
- ConfigurationValues.cs
- DataSourceNameHandler.cs
- Guid.cs
- QueryAsyncResult.cs
- CachedCompositeFamily.cs
- ToolStripGrip.cs
- unsafenativemethodsother.cs
- ContentElement.cs
- DbParameterHelper.cs
- Transform.cs
- UriScheme.cs
- CalendarDay.cs