Skip to main content
Version: 3.5

DragEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

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

public class DragEventArgs : EventArgs

Constructors

Instance memberDragEventArgs(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 memberAllowedEffect

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

Instance memberAllowedFileTypes

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 memberData

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

Instance memberDragSource

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

Instance memberDropTarget

Object: Returns the original target of the drag operation.

Instance memberEffect

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

Instance memberFiles

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

Instance memberImage

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

Instance memberImageSize

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

Instance memberImageSource

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

Instance memberKeyState

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

Instance memberLocation

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

Instance memberModifiers

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

Instance memberX

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

Instance memberY

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.