# UserInterfaceSlider class

Namespace: [Rhino.UI](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.ui.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
public class UserInterfaceSlider : UserInterfaceControl
```

Sliders allow dragging a grip back and forth along a defined range

## Properties

- [AllowValueAfterRangeEnd](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceslider/allowvalueafterrangeend.md): Set to true if you want to allow dragging of the slider grip after the end of the defined range.
- [AllowValueBeforeRangeStart](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceslider/allowvaluebeforerangestart.md): Set to true if you want to allow dragging of the slider grip before the start of the defined range.
- [DigitPrecision](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceslider/digitprecision.md): Number of digits of precision for the slider. If you want the slider to only represent integer values, set the Digits value to 0.
- [DisplayValue](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceslider/displayvalue.md): Should the slider display the current value as text on the screen
- [HorizontalOrientation](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceslider/horizontalorientation.md)
- [Range](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceslider/range.md): The range of acceptable values for the slider
- [Value](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceslider/value.md): Current value that the slider represents

## Methods

- [OnValueChanged](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceslider/onvaluechanged.md): Called when the slider's value changes. The default implementation calls the ValueChanged event
- [ValueAsFormattedString](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceslider/valueasformattedstring.md): Formatted string shown based on value and digit precision

## Events

- [ValueChanged](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceslider/valuechanged.md): Event triggered when the slider's value changes

## Inherited Members

- From [UserInterfaceControl](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfacecontrol.md): [BackgroundColor](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfacecontrol/backgroundcolor.md), [HorizontalAlignment](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfacecontrol/horizontalalignment.md), [Location](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfacecontrol/location.md), [Size](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfacecontrol/size.md), [Text](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfacecontrol/text.md), [TextColor](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfacecontrol/textcolor.md), [TextHeight](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfacecontrol/textheight.md), [TextHorizontalAlignment](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfacecontrol/texthorizontalalignment.md), [TextVerticalAlignment](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfacecontrol/textverticalalignment.md), [TrackingPoint](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfacecontrol/trackingpoint.md), [VerticalAlignment](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfacecontrol/verticalalignment.md), [ComputedRectangle](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfacecontrol/computedrectangle.md), [SetSvg](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfacecontrol/setsvg.md)
- From [UserInterfaceObjectBase](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceobjectbase.md): [BoundToActiveView](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceobjectbase/boundtoactiveview.md), [HasKeyboardFocus](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceobjectbase/haskeyboardfocus.md), [Tooltip](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceobjectbase/tooltip.md), [Visible](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceobjectbase/visible.md), [IsMouseOver](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceobjectbase/ismouseover.md), [IsRegistered](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceobjectbase/isregistered.md), [OnDraw](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceobjectbase/ondraw.md), [OnMouseClick](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceobjectbase/onmouseclick.md), [OnMouseDoubleClick](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceobjectbase/onmousedoubleclick.md), [OnMouseDown](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceobjectbase/onmousedown.md), [OnMouseEnter](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceobjectbase/onmouseenter.md), [OnMouseLeave](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceobjectbase/onmouseleave.md), [OnMouseMove](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceobjectbase/onmousemove.md), [OnMouseUp](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceobjectbase/onmouseup.md), [OnRunCommand](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceobjectbase/onruncommand.md), [RegisterForAllDocuments](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceobjectbase/registerforalldocuments.md), [RunCommand](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceobjectbase/runcommand.md), [Unregister](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.userinterfaceobjectbase/unregister.md)
