# IDropTarget

URL: https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.idroptarget

Version: 4.1
Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.1.0.0)

Controls that support drag & drop operations implement this interface.

- C# - VB.NET

```csharp
public interface IDropTarget
```

```visual
Public Interface IDropTarget
```

## Methods

### ![Instance member](/img/api/instance.png) OnDragDrop(e)

Fires the [DragDrop](/api/wisej.web/interfaces/wisej.web.idroptarget#dragdrop) event.

| Parameter | Type | Description | **e** | [DragEventArgs](/api/wisej.web/containers/control/wisej.web.drageventargs) | A [DragEventArgs](/api/wisej.web/containers/control/wisej.web.drageventargs) that contains the event data. 

This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

### ![Instance member](/img/api/instance.png) OnDragEnter(e)

Fires the [DragEnter](/api/wisej.web/interfaces/wisej.web.idroptarget#dragenter) event.

| Parameter | Type | Description | **e** | [DragEventArgs](/api/wisej.web/containers/control/wisej.web.drageventargs) | A [DragEventArgs](/api/wisej.web/containers/control/wisej.web.drageventargs) that contains the event data. 

This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

### ![Instance member](/img/api/instance.png) OnDragLeave(e)

Fires the [DragLeave](/api/wisej.web/interfaces/wisej.web.idroptarget#dragleave) event.

| Parameter | Type | Description | **e** | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | An [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. 

This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

### ![Instance member](/img/api/instance.png) OnDragOver(e)

Fires the [DragOver](/api/wisej.web/interfaces/wisej.web.idroptarget#dragover) event.

| Parameter | Type | Description | **e** | [DragEventArgs](/api/wisej.web/containers/control/wisej.web.drageventargs) | A [DragEventArgs](/api/wisej.web/containers/control/wisej.web.drageventargs) that contains the event data. 

This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

## Events

### ![Instance member](/img/api/instance.png) DragDrop

[DragEventHandler](/api/wisej.web/containers/control/wisej.web.drageventhandler) Fired when a drag-and-drop operation is completed.

This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

### ![Instance member](/img/api/instance.png) DragEnter

[DragEventHandler](/api/wisej.web/containers/control/wisej.web.drageventhandler) Fired when an object is dragged into the control's bounds.

This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

### ![Instance member](/img/api/instance.png) DragLeave

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when an object is dragged out of the control's bounds.

This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

### ![Instance member](/img/api/instance.png) DragOver

[DragEventHandler](/api/wisej.web/containers/control/wisej.web.drageventhandler) Fired when an object is dragged over the control's bounds.

This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

## Implemented By

| Name | Description | TableLayoutPanel | Represents a panel that dynamically lays out its contents in a grid composed of rows and columns. | [FileDialogUI](/api/wisej.web/common-dialogs/wisej.web.filedialogui) | UI implementation for the FileDialog class. | [FolderBrowserDialogUI](/api/wisej.web/common-dialogs/wisej.web.folderbrowserdialogui) | UI implementation for the FolderDialog class. | [BindingNavigator](/api/wisej.web/data-binding/wisej.web.bindingnavigator) | Represents the navigation and manipulation user interface (UI) for controls that are bound to a data source. | Button | Represents a button control. | [ButtonBase](/api/wisej.web/buttons/wisej.web.buttonbase) | Implements the basic functionality common to button controls. | [CheckBox](/api/wisej.web/buttons/wisej.web.checkbox) | Represents a check box control. | CheckedListBox | Displays aListBox in which a check box is displayed to the left of each item. | ComboBox | Represents a combo box control. | ContainerControl | Provides focus-management functionality for controls that can function as a container for other controls. | Control | Base class for all Wisej controls. | [DateTimePicker](/api/wisej.web/editors/wisej.web.datetimepicker) | Represents a control that allows the user to select or type a date and a time. | DomainUpDown | Represents a spinner control that displays string values. | FlowLayoutPanel | Represents a panel that dynamically arranges its controls horizontally or vertically in automatic rows or columns. | Form | Represents a window or dialog box that makes up an application's user interface. | [GroupBox](/api/wisej.web/containers/wisej.web.groupbox) | Represents a Wisej control that displays a frame around a group of controls with an optional caption. | [Label](/api/wisej.web/content/wisej.web.label) | Represents a label control. | LinkLabel | Represents an hyper-link control. | ListBox | Represents a control to display a list of items. | ListControl | Provides a common implementation of members for theListBox andComboBox classes. | MaskedTextBox | Uses a mask to distinguish between proper and improper user input. | [MdiClient](/api/wisej.web/containers/form/wisej.web.mdiclient) | Represents the container for multiple-document interface (MDI) child forms. | MonthCalendar | Represents a control that enables the user to select a date using a visual monthly calendar display. | [NumericUpDown](/api/wisej.web/editors/wisej.web.numericupdown) | Represents a spinner control that displays numeric values. | [Page](/api/wisej.web/containers/wisej.web.page) | Represents a web page that fills the browser and acts as the main container for the application. An application can have only one active main page at any given time. | [Panel](/api/wisej.web/containers/wisej.web.panel) | Represents a collapsible panel with an optional header that contains a group of controls. | [PictureBox](/api/wisej.web/content/wisej.web.picturebox) | Represents an image control. | [ProgressBar](/api/wisej.web/content/wisej.web.progressbar) | Represents a progress control that displays a value visually as a filled bar. | [RadioButton](/api/wisej.web/buttons/wisej.web.radiobutton) | Enables the user to select a single option from a group of choices when paired with other [RadioButton](/api/wisej.web/buttons/wisej.web.radiobutton) controls. | ScrollableControl | Defines a base class for controls that support auto-scrolling behavior. | [HScrollBar](/api/wisej.web/content/scrollbar/wisej.web.hscrollbar) | Represents an horizontal scroll bar. | [VScrollBar](/api/wisej.web/content/scrollbar/wisej.web.vscrollbar) | Represents a vertical scroll bar. | ScrollBar | Implements the basic functionality of a scroll bar control. | SplitContainer | Represents a control consisting of a movable bar that divides a container's display area into two resizable panels. | [SplitterPanel](/api/wisej.web/containers/splitcontainer/wisej.web.splitterpanel) | Creates a panel that is associated with aSplitContainer . | TabControl | Manages a related set of [TabPage](/api/wisej.web/containers/tabcontrol/wisej.web.tabpage) pages. | [TabPage](/api/wisej.web/containers/tabcontrol/wisej.web.tabpage) | Represents a single tab page in aTabControl . | [TextBox](/api/wisej.web/editors/wisej.web.textbox) | Represents a text box control that allows the user to enter any value. | [TextBoxBase](/api/wisej.web/editors/wisej.web.textboxbase) | Implements the basic functionality required by text controls. | [TrackBar](/api/wisej.web/editors/wisej.web.trackbar) | Enables the user to choose between a range of values by sliding a small bar along another bar. | [UpDownBase](/api/wisej.web/editors/wisej.web.updownbase) | Implements the basic functionality required by a spin box (also known as an up-down control). | [UserControl](/api/wisej.web/containers/wisej.web.usercontrol) | Provides an empty control that can be used to create other controls. | WebBrowser | Represents a web browser control that enables the user to navigate web pages inside a form or a page. | [DataGridViewComboBoxEditingControl](/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcomboboxeditingcontrol) | Represents aComboBox control that can be hosted in a [DataGridViewComboBoxCell](/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcomboboxcell) . | [DataGridViewDateTimePickerEditingControl](/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewdatetimepickereditingcontrol) | Represents a [DateTimePicker](/api/wisej.web/editors/wisej.web.datetimepicker) control that can be hosted in a [DataGridViewDateTimePickerCell](/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewdatetimepickercell) . | [DataGridViewMaskedTextBoxEditingControl](/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewmaskedtextboxeditingcontrol) | Represents aMaskedTextBox control that can be hosted in a [DataGridViewMaskedTextBoxCell](/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewmaskedtextboxcell) cell. | [DataGridViewNumericUpDownEditingControl](/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewnumericupdowneditingcontrol) | Represents a [NumericUpDown](/api/wisej.web/editors/wisej.web.numericupdown) control that can be hosted in a [DataGridViewNumericUpDownCell](/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewnumericupdowncell) . | [DataGridViewTextBoxEditingControl](/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewtextboxeditingcontrol) | Represents a [TextBox](/api/wisej.web/editors/wisej.web.textbox) control that can be hosted in a [DataGridViewTextBoxCell](/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewtextboxcell) cell when the cell's [WrapMode](/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle#wrapmode) is set to [False](/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewtristate#fields) . | DataGridView | Represents a data grid control. | DataRepeater | Displays data in a customizable list format. | [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem) | Used by theDataRepeater control to display data at run time. | Desktop | Represents a desktop container that can host floating windows. | Accordion | Displays collapsible set of [AccordionPanel](/api/wisej.web/containers/accordion/wisej.web.accordionpanel) panels for presenting information in a limited amount of space. | [AccordionPanel](/api/wisej.web/containers/accordion/wisej.web.accordionpanel) | Represents a panel in aAccordion control. | [AspNetPanel](/api/wisej.web/content/wisej.web.aspnetpanel) | Represents a control that can host ASP.NET or MVC pages within a Wisej application. | Canvas | Represents a drawing surface for immediate-mode 2D rendering, similar to the HTML5 Canvas API. | FlashPlayer | Represents aFlashPlayer control that can display flash applications. | FlexLayoutPanel | Represents a panel that dynamically arranges its child controls. | HtmlPanel | Represents a control that displays any HTML file and a corresponding CSS style sheet as embedded HTML. | [IFramePanel](/api/wisej.web/content/wisej.web.iframepanel) | Represents a control that displays any HTML file in an IFrame element. | [Line](/api/wisej.web/content/wisej.web.line) | Represents a line control. | [ListViewComboBox](/api/wisej.web/lists-and-grids/wisej.web.listviewcombobox) | The TreeViewComboBox control represents a [UserComboBox](/api/wisej.web/lists-and-grids/wisej.web.usercombobox) control with aListView as the drop down panel. | Media | Base implementation for media controls. | [Video](/api/wisej.web/media/wisej.web.video) | Represents a [Video](/api/wisej.web/media/wisej.web.video) control that displays a video file. | [Audio](/api/wisej.web/media/wisej.web.audio) | Represents a [Audio](/api/wisej.web/media/wisej.web.audio) control that plays an audio file. | PdfViewer | Represents aPdfViewer control that can display a pdf document in the browser either using the native pdf viewer, the pdf.js viewer, Google docs, or a custom viewer. | Shape | Represents a shape control. Displays an element a border in any of the four sides. | [SlideBar](/api/wisej.web/containers/wisej.web.slidebar) | Displays child controls vertically or horizontally in a scrollable container. | [Spacer](/api/wisej.web/content/wisej.web.spacer) | Represents a spacer control. It can be used to add a space between controls in a layout panel. It is not rendered on the client. | [SplitButton](/api/wisej.web/buttons/wisej.web.splitbutton) | Represents a split button control. | TagTextBox | Represents a data field that displays a list of selectable and removable tags. The control recognizes tags as the user types and adds in front of the editable field. | TimeUpDown | Represents a spinner control that displays [TimeSpan](https://docs.microsoft.com/dotnet/api/system.timespan) values. | [TreeViewComboBox](/api/wisej.web/lists-and-grids/wisej.web.treeviewcombobox) | The TreeViewComboBox control represents a [UserComboBox](/api/wisej.web/lists-and-grids/wisej.web.usercombobox) control with aTreeView as the drop down panel. | [TypedTextBox](/api/wisej.web/editors/wisej.web.typedtextbox) | Represents a text box control that allows the user to enter a typed value. | Upload | Represent an upload widget. Allows users to selected one or more files and upload them to the server. | [UserComboBox](/api/wisej.web/lists-and-grids/wisej.web.usercombobox) | The UserComboBox control represents aComboBox control with a custom panel that drops down when the user clicks the down arrow. | [UserPopup](/api/wisej.web/containers/wisej.web.userpopup) | Provides an popup container that can be attached to other controls. | Widget | Provides a generic widget that can use most third party javascript widgets. | ListView | Represents a list view control, which displays a collection of items that can be displayed using one of four different views. | [MenuBar](/api/wisej.web/menus/wisej.web.menubar) | Represents a menu bar component. | PropertyGrid | Provides a user interface for browsing the properties of an object. | StatusBar | Displays information to the user in a about the object being viewed, the object's components, or the object's operation. | ToolBar | Represents a toolbar component. | TreeView | Displays a hierarchical collection of labeled items, each represented by a [TreeNode](/api/wisej.web/lists-and-grids/treeview/wisej.web.treenode) .
