# Sandbox.UI.Drag

An outgoing OS drag from a panel - files and/or text the user can drop on anything that
takes them, other windows, other apps and the desktop included. Fill it in, then
[Sandbox.UI.Drag.Start](/api/Sandbox.UI.Drag/Start).

- Kind: class
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.Engine`

## Constructors

- [`Drag`](/api/Sandbox.UI.Drag/.ctor)

## Methods

- [`SetFile`](/api/Sandbox.UI.Drag/SetFile): Carry this file. Call again to carry more than one.
- [`SetText`](/api/Sandbox.UI.Drag/SetText): Carry this text.
- [`Start`](/api/Sandbox.UI.Drag/Start): Start the drag. Blocks while the user drags it around - the panel windows keep painting through it - and returns what the receiver did with the payload once they let go. None when it was cancelled or nothing was carried.
