API ReferenceSandbox.UI
Dragclass
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`.
object→Drag
Constructors1
Showing 1 constructors
No results match this filter.
Methods3
Showing 3 methods
public void SetFile(string path)
Carry this file. Call again to carry more than one.
| Parameter | Type | Description |
|---|---|---|
| path | string | — |
Returns:
void—public void SetText(string text)
Carry this text.
| Parameter | Type | Description |
|---|---|---|
| text | string | — |
Returns:
void—public Sandbox.UI.DropAction 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.
No results match this filter.