Skip to main content
Version: 4.1

DragEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Provides data for the DragDrop, DragEnter, or DragOver event.

public class DragEventArgs : EventArgs

Constructors

Instance member DragEventArgs(allowedEffect, effect, data, location)

Initializes a new instance of the DragEventArgs class.

NameTypeDescription
allowedEffectDragDropEffectsOne of the DragDropEffects values.
effectDragDropEffectsOne of the DragDropEffects values.
dataObjectThe data associated with this event.
locationPointThe Point that indicates the location of the drag event.

Properties

Instance member AllowedEffect

DragDropEffects: Returns which drag-and-drop operations are allowed by the originator (or source) of the drag event.

Instance member AllowedFileTypes

String: Specify the types of files that the server accepts (that can be submitted through a file upload).

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.

Instance member Data

IDataObject: Returns the IDataObject that contains the data associated with this event.

Instance member DragSource

Control: Returns the component that started the drag operation by calling DoDragDrop. Since 2.5.32

Instance member DropTarget

Object: Returns the original target of the drag operation.

Instance member Effect

DragDropEffects: Returns or sets the target drop effect in a drag-and-drop operation.

Instance member Files

HttpFileCollection: Returns the HttpFileCollection containing the files that have been dropped on the target, or null.

Instance member Image

Image: Returns or sets the custom image displayed on the client to represent the drag action.

Instance member ImageSize

Size: Returns or sets the size in pixels of the custom image displayed on the client to represent the drag action.

Instance member ImageSource

String: Returns or sets the custom image source displayed on the client to represent the drag action.

Instance member KeyState

Int32: Returns the current state of the SHIFT, CTRL, and ALT keys, as well as the state of the mouse buttons.

Instance member Location

Point: Returns the location of the mouse or pointer event, in screen coordinates.

Instance member Modifiers

Keys: Returns a value indicating which of the modifier keys (SHIFT, CTRL, and ALT) is in a pressed state.

Instance member X

Int32: Returns the x-coordinate of the mouse or pointer, in screen coordinates.

Instance member Y

Int32: Returns the y-coordinate of the mouse or pointer, in screen coordinates.

Used By

NameDescription
DragEventHandlerRepresents the method that will handle the DragDrop, DragEnter, or DragOver event of a Control.