# Sandbox.UI.SliderControl

A float control drawn as a draggable slider, optionally with a text entry.

- Kind: class
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.UI.BaseControl](/api/Sandbox.UI.BaseControl)

## Constructors

- [`SliderControl`](/api/Sandbox.UI.SliderControl/.ctor)

## Properties

- [`Fill`](/api/Sandbox.UI.SliderControl/Fill): Which part of the track is drawn filled - from the left up to the thumb by default.
- [`Max`](/api/Sandbox.UI.SliderControl/Max): The right side of the slider.
- [`Min`](/api/Sandbox.UI.SliderControl/Min): The left side of the slider.
- [`NumberFormat`](/api/Sandbox.UI.SliderControl/NumberFormat): How to display numbers in this control
- [`OnValueChanged`](/api/Sandbox.UI.SliderControl/OnValueChanged)
- [`ShowRange`](/api/Sandbox.UI.SliderControl/ShowRange): Show the range values above the slider
- [`ShowTextEntry`](/api/Sandbox.UI.SliderControl/ShowTextEntry): Show a text entry next to the slider
- [`ShowValueTooltip`](/api/Sandbox.UI.SliderControl/ShowValueTooltip): When changing the value show the tooltip
- [`Step`](/api/Sandbox.UI.SliderControl/Step): If set to 1, value will be rounded to 1's If set to 10, value will be rounded to 10's If set to 0.1, value will be rounded to 0.1's
- [`SupportsMultiEdit`](/api/Sandbox.UI.SliderControl/SupportsMultiEdit)
- [`TickStep`](/api/Sandbox.UI.SliderControl/TickStep): Draw a mark on the track every this many units, counting up from [Sandbox.UI.SliderControl.Min](/api/Sandbox.UI.SliderControl/Min). 0 for none.
- [`Value`](/api/Sandbox.UI.SliderControl/Value)

## Methods

- [`Rebuild`](/api/Sandbox.UI.SliderControl/Rebuild)
- [`ScreenPosToValue`](/api/Sandbox.UI.SliderControl/ScreenPosToValue): Convert a screen position to a value. The value is clamped, but not snapped.
- [`Tick`](/api/Sandbox.UI.SliderControl/Tick)
