Edit

Bagikan melalui


ItemDragEventArgs Constructors

Definition

Initializes a new instance of the ItemDragEventArgs class.

Overloads

ItemDragEventArgs(MouseButtons)

Initializes a new instance of the ItemDragEventArgs class with a specified mouse button.

ItemDragEventArgs(MouseButtons, Object)

Initializes a new instance of the ItemDragEventArgs class with a specified mouse button and the item that is being dragged.

ItemDragEventArgs(MouseButtons)

Initializes a new instance of the ItemDragEventArgs class with a specified mouse button.

public:
 ItemDragEventArgs(System::Windows::Forms::MouseButtons button);
public ItemDragEventArgs (System.Windows.Forms.MouseButtons button);
new System.Windows.Forms.ItemDragEventArgs : System.Windows.Forms.MouseButtons -> System.Windows.Forms.ItemDragEventArgs
Public Sub New (button As MouseButtons)

Parameters

button
MouseButtons

A bitwise combination of MouseButtons values that indicates which mouse buttons were pressed.

Remarks

When this version of the constructor is used, the value of the Item property is automatically set to null.

Applies to

ItemDragEventArgs(MouseButtons, Object)

Initializes a new instance of the ItemDragEventArgs class with a specified mouse button and the item that is being dragged.

public:
 ItemDragEventArgs(System::Windows::Forms::MouseButtons button, System::Object ^ item);
public ItemDragEventArgs (System.Windows.Forms.MouseButtons button, object item);
public ItemDragEventArgs (System.Windows.Forms.MouseButtons button, object? item);
new System.Windows.Forms.ItemDragEventArgs : System.Windows.Forms.MouseButtons * obj -> System.Windows.Forms.ItemDragEventArgs
Public Sub New (button As MouseButtons, item As Object)

Parameters

button
MouseButtons

A bitwise combination of MouseButtons values that indicates which mouse buttons were pressed.

item
Object

The item being dragged.

Applies to