DragEventArgs Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DragEventArgs(IDataObject, Int32, Int32, Int32, DragDropEffects, DragDropEffects) |
Initializes a new instance of the DragEventArgs class. |
DragEventArgs(IDataObject, Int32, Int32, Int32, DragDropEffects, DragDropEffects, DropImageType, String, String) |
Initializes a new instance of the DragEventArgs class. |
DragEventArgs(IDataObject, Int32, Int32, Int32, DragDropEffects, DragDropEffects)
Initializes a new instance of the DragEventArgs class.
public:
DragEventArgs(System::Windows::Forms::IDataObject ^ data, int keyState, int x, int y, System::Windows::Forms::DragDropEffects allowedEffect, System::Windows::Forms::DragDropEffects effect);
public DragEventArgs (System.Windows.Forms.IDataObject data, int keyState, int x, int y, System.Windows.Forms.DragDropEffects allowedEffect, System.Windows.Forms.DragDropEffects effect);
public DragEventArgs (System.Windows.Forms.IDataObject? data, int keyState, int x, int y, System.Windows.Forms.DragDropEffects allowedEffect, System.Windows.Forms.DragDropEffects effect);
new System.Windows.Forms.DragEventArgs : System.Windows.Forms.IDataObject * int * int * int * System.Windows.Forms.DragDropEffects * System.Windows.Forms.DragDropEffects -> System.Windows.Forms.DragEventArgs
Public Sub New (data As IDataObject, keyState As Integer, x As Integer, y As Integer, allowedEffect As DragDropEffects, effect As DragDropEffects)
Parameters
- data
- IDataObject
The data associated with this event.
- keyState
- Int32
The current state of the SHIFT, CTRL, and ALT keys.
- x
- Int32
The x-coordinate of the mouse cursor in pixels.
- y
- Int32
The y-coordinate of the mouse cursor in pixels.
- allowedEffect
- DragDropEffects
One of the DragDropEffects values.
- effect
- DragDropEffects
One of the DragDropEffects values.
See also
Applies to
DragEventArgs(IDataObject, Int32, Int32, Int32, DragDropEffects, DragDropEffects, DropImageType, String, String)
Initializes a new instance of the DragEventArgs class.
public:
DragEventArgs(System::Windows::Forms::IDataObject ^ data, int keyState, int x, int y, System::Windows::Forms::DragDropEffects allowedEffect, System::Windows::Forms::DragDropEffects effect, System::Windows::Forms::DropImageType dropImageType, System::String ^ message, System::String ^ messageReplacementToken);
public DragEventArgs (System.Windows.Forms.IDataObject? data, int keyState, int x, int y, System.Windows.Forms.DragDropEffects allowedEffect, System.Windows.Forms.DragDropEffects effect, System.Windows.Forms.DropImageType dropImageType, string message, string messageReplacementToken);
public DragEventArgs (System.Windows.Forms.IDataObject? data, int keyState, int x, int y, System.Windows.Forms.DragDropEffects allowedEffect, System.Windows.Forms.DragDropEffects effect, System.Windows.Forms.DropImageType dropImageType, string? message, string? messageReplacementToken);
new System.Windows.Forms.DragEventArgs : System.Windows.Forms.IDataObject * int * int * int * System.Windows.Forms.DragDropEffects * System.Windows.Forms.DragDropEffects * System.Windows.Forms.DropImageType * string * string -> System.Windows.Forms.DragEventArgs
Public Sub New (data As IDataObject, keyState As Integer, x As Integer, y As Integer, allowedEffect As DragDropEffects, effect As DragDropEffects, dropImageType As DropImageType, message As String, messageReplacementToken As String)
Parameters
- data
- IDataObject
- keyState
- Int32
- x
- Int32
- y
- Int32
- allowedEffect
- DragDropEffects
- effect
- DragDropEffects
- dropImageType
- DropImageType
- message
- String
- messageReplacementToken
- String
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈