ItemDragEventArgs 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.
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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기