# Editor.ControlWidget

A control widget is used to edit the value of a single SerializedProperty.

- Kind: class
- Namespace: `Editor`
- Assembly: `Sandbox.Tools`
- Inherits: [Editor.Widget](/api/Editor.Widget)
- Modifiers: abstract

## Constructors

- [`ControlWidget`](/api/Editor.ControlWidget/.ctor)

## Fields

- [`ControlHighlightPrimary`](/api/Editor.ControlWidget/ControlHighlightPrimary)
- [`ControlHighlightSecondary`](/api/Editor.ControlWidget/ControlHighlightSecondary)
- [`PaintBackground`](/api/Editor.ControlWidget/PaintBackground)

## Properties

- [`CellAlignment`](/api/Editor.ControlWidget/CellAlignment): If none, when in a grid, the control will fill the entire cell
- [`IncludeLabel`](/api/Editor.ControlWidget/IncludeLabel): If true (default) we'll include a label next to the control
- [`IsControlActive`](/api/Editor.ControlWidget/IsControlActive)
- [`IsControlButton`](/api/Editor.ControlWidget/IsControlButton)
- [`IsControlDisabled`](/api/Editor.ControlWidget/IsControlDisabled)
- [`IsControlHovered`](/api/Editor.ControlWidget/IsControlHovered)
- [`IsWideMode`](/api/Editor.ControlWidget/IsWideMode): If true we prefer to be full inspector width with the label above us
- [`SerializedProperty`](/api/Editor.ControlWidget/SerializedProperty)
- [`SupportsMultiEdit`](/api/Editor.ControlWidget/SupportsMultiEdit)
- [`Tint`](/api/Editor.ControlWidget/Tint)

## Methods

- [`Create`](/api/Editor.ControlWidget/Create)
- [`FromClipboardString`](/api/Editor.ControlWidget/FromClipboardString)
- [`OnLabelContextMenu`](/api/Editor.ControlWidget/OnLabelContextMenu): Called when right clicking a label in a ControlSheet for this widget. This allows you to add advanced menu items for this widget at the top of the menu, before the default ones.
- [`Prime`](/api/Editor.ControlWidget/Prime): Should get called right after creation
- [`StartEditing`](/api/Editor.ControlWidget/StartEditing): Selects this widget and starts editing. Used when we want to focus on the widget in the inspector, like when double-clicking on something in a graph editor that maps to this widget.
- [`Think`](/api/Editor.ControlWidget/Think)
- [`ToClipboardString`](/api/Editor.ControlWidget/ToClipboardString)
- [`TryCreateGenericObjectControlWidget`](/api/Editor.ControlWidget/TryCreateGenericObjectControlWidget)
