Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ComboBox.cs
- DynamicRendererThreadManager.cs
- SystemWebSectionGroup.cs
- CreateUserWizardAutoFormat.cs
- NonParentingControl.cs
- SHA384.cs
- HiddenField.cs
- SizeF.cs
- LogSwitch.cs
- DesignDataSource.cs
- BrowserDefinitionCollection.cs
- contentDescriptor.cs
- Point3DAnimationUsingKeyFrames.cs
- BoundField.cs
- XmlSchemaSimpleContentRestriction.cs
- XmlSchemaSimpleContentExtension.cs
- ActivitySurrogate.cs
- IxmlLineInfo.cs
- AuthenticateEventArgs.cs
- odbcmetadatacolumnnames.cs
- SuppressMergeCheckAttribute.cs
- LocalServiceSecuritySettingsElement.cs
- QilReference.cs
- VariableModifiersHelper.cs
- EmbossBitmapEffect.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- XsltException.cs
- DesignTimeTemplateParser.cs
- WpfSharedBamlSchemaContext.cs
- WebPartEditorCancelVerb.cs
- AmbiguousMatchException.cs
- SqlDataSourceConfigureFilterForm.cs
- DataExchangeServiceBinder.cs
- ContextQuery.cs
- BitArray.cs
- MethodBuilder.cs
- XmlEventCache.cs
- Schema.cs
- MulticastDelegate.cs
- SqlException.cs
- CustomAttributeBuilder.cs
- ActivityExecutor.cs
- DocumentSchemaValidator.cs
- RemoteTokenFactory.cs
- HttpPostedFileWrapper.cs
- SelectionItemPattern.cs
- CodeRemoveEventStatement.cs
- NamespaceCollection.cs
- AttributeExtensions.cs
- TraceContextRecord.cs
- _BufferOffsetSize.cs
- UIHelper.cs
- UIElement3D.cs
- counter.cs
- ParsedAttributeCollection.cs
- ExtenderProvidedPropertyAttribute.cs
- PriorityBinding.cs
- FormatSettings.cs
- ObjectQueryProvider.cs
- _FtpControlStream.cs
- VectorKeyFrameCollection.cs
- ColumnResult.cs
- WebHttpDispatchOperationSelector.cs
- UnionCodeGroup.cs
- UnmanagedMemoryStream.cs
- DisplayMemberTemplateSelector.cs
- XmlAttributes.cs
- NamedPipeProcessProtocolHandler.cs
- EncodingNLS.cs
- DataSourceCache.cs
- WebPartConnectionsConfigureVerb.cs
- SubordinateTransaction.cs
- COM2ExtendedTypeConverter.cs
- AttributeTableBuilder.cs
- TimeBoundedCache.cs
- URLMembershipCondition.cs
- SmiEventStream.cs
- ToolStripRendererSwitcher.cs
- IpcChannelHelper.cs
- VScrollBar.cs
- IsolatedStorage.cs
- ConsumerConnectionPointCollection.cs
- SortExpressionBuilder.cs
- MatrixTransform3D.cs
- Gdiplus.cs
- BatchParser.cs
- precedingsibling.cs
- RectangleF.cs
- DataSourceCacheDurationConverter.cs
- XmlCharCheckingWriter.cs
- QilParameter.cs
- WindowsFormsHelpers.cs
- MaskPropertyEditor.cs
- ThreadStateException.cs
- Queue.cs
- ListViewUpdateEventArgs.cs
- UserCancellationException.cs
- FileLogRecordStream.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- XPathNodeInfoAtom.cs