# Sandbox.UI.GradientStopsControl

A gradient swatch that opens a stop editor when clicked.

- Kind: class
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.UI.BaseControl](/api/Sandbox.UI.BaseControl)
- Modifiers: sealed

## Constructors

- [`GradientStopsControl`](/api/Sandbox.UI.GradientStopsControl/.ctor): Create the compact swatch shown beside the property name.

## Methods

- [`GetClipboardValue`](/api/Sandbox.UI.GradientStopsControl/GetClipboardValue): Copy the bound gradient as JSON.
- [`OnButtonTyped`](/api/Sandbox.UI.GradientStopsControl/OnButtonTyped): Open the stop editor with the keyboard.
- [`OnDeleted`](/api/Sandbox.UI.GradientStopsControl/OnDeleted): Close the stop editor when the inspected property goes away.
- [`Tick`](/api/Sandbox.UI.GradientStopsControl/Tick): Keep the swatch in sync with edits in the popup or elsewhere.
