DragEventArgs
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.1.0.0)
Provides data for the DragDrop, DragEnter, or DragOver event.
- C#
- VB.NET
public class DragEventArgs : EventArgs
Public Class DragEventArgs
Inherits EventArgs
Constructors
DragEventArgs(allowedEffect, effect, data, location)
Initializes a new instance of the DragEventArgs class.
| Name | Type | Description |
|---|---|---|
| allowedEffect | DragDropEffects | One of the DragDropEffects values. |
| effect | DragDropEffects | One of the DragDropEffects values. |
| data | Object | The data associated with this event. |
| location | Point | The Point that indicates the location of the drag event. |
Properties
AllowedEffect
DragDropEffects: Returns which drag-and-drop operations are allowed by the originator (or source) of the drag event.
Value: One of the DragDropEffects values.
AllowedFileTypes
String: Specify the types of files that the server accepts (that can be submitted through a file upload).
Value: The accepted media type separated by a comma. (e.g. "audio/,video/,image/*")
The allowed files string follows the HTML 4.01 and HTML5 specifications. You can configure only one entry in the browser's file dialog. The syntax is "file_extension|audio/|video/|image/*|media_type". Look at IANA Media Types for a complete list of standard media types.
Data
IDataObject: Returns the IDataObject that contains the data associated with this event.
Value: The data associated with this event.
DragSource 2.5.32+
Control: Returns the component that started the drag operation by calling DoDragDrop.
DropTarget
Object: Returns the original target of the drag operation.
Value: The object that was the original target of the drag or drop operation. It can be a IWisejComponent like a TreeNode or a ListViewItem or an element like a DataGridViewCell.
Effect
DragDropEffects: Returns or sets the target drop effect in a drag-and-drop operation.
Value: One of the DragDropEffects values.
Files
HttpFileCollection: Returns the HttpFileCollection containing the files that have been dropped on the target, or null.
Image
Image: Returns or sets the custom image displayed on the client to represent the drag action.
ImageSize
Size: Returns or sets the size in pixels of the custom image displayed on the client to represent the drag action.
ImageSource
String: Returns or sets the custom image source displayed on the client to represent the drag action.
KeyState
Int32: Returns the current state of the SHIFT, CTRL, and ALT keys, as well as the state of the mouse buttons.
Value: The current state of the SHIFT, CTRL, and ALT keys and of the mouse buttons.
Location
Point: Returns the location of the mouse or pointer event, in screen coordinates.
Value: A Point that contains the x and y coordinates n pixels.
Modifiers
Keys: Returns a value indicating which of the modifier keys (SHIFT, CTRL, and ALT) is in a pressed state.
Value: A combination of the Keys values. The default is None.
X
Int32: Returns the x-coordinate of the mouse or pointer, in screen coordinates.
Value: The x-coordinate of the mouse or pointer in pixels.
Y
Int32: Returns the y-coordinate of the mouse or pointer, in screen coordinates.
Value: The y-coordinate of the mouse or pointer in pixels.
Used By
| Name | Description |
|---|---|
| DragEventHandler | Represents the method that will handle the DragDrop, DragEnter, or DragOver event of a Control. |