# GH_SliderBase class

Namespace: [Grasshopper.GUI.Base](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.gui.base.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_SliderBase : GH_TextBoxInputBase
```

Provides Numeric slider GUI not tied to a control-handle.

## Properties

- [Bounds](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/bounds.md): Gets or sets the bounds of the slider.
- [ControlBackColour](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/controlbackcolour.md): Gets or sets the BackColour for this slider control.
- [ControlEdgeColour](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/controledgecolour.md): Gets or sets the EdgeColor for this slider control.
- [ControlShadowColour](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/controlshadowcolour.md): Gets or sets the Shadow colour for this control.
- [DecimalPlaces](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/decimalplaces.md): Gets or sets the number of decimal places allowed for floating point type sliders. Valid values between zero and 12.
- [DrawControlBackground](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/drawcontrolbackground.md): Gets or sets whether the background of the slider should be drawn.
- [DrawControlBorder](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/drawcontrolborder.md): Gets or sets whether the border of the slider should be drawn.
- [DrawControlShadows](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/drawcontrolshadows.md): Gets or sets whether the drop shadows of the slider should be drawn.
- [Epsilon](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/epsilon.md): Gets the smallest value change supported by the current slider properties.
- [Font](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/font.md): Gets or sets the font for this slider.
- [FormatMask](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/formatmask.md): Gets or sets the string format mask to use for the display. Should contain at least one "{0}" element.
- [Grip](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/grip.md): Gets the box of the current grip. If the slider value/limits are not set up correctly then this rectangle may well be outside of the bounds. If the limits are coincident, this will fail (divide by zero).
- [GripBottomColour](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/gripbottomcolour.md): Gets or sets the fill colour for the bottom edge of the slider grip.
- [GripDisplay](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/gripdisplay.md): Gets or sets how the slider grip (or thumb) is drawn.
- [GripEdgeColour](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/gripedgecolour.md): Gets or sets the edge colour for the slider grip.
- [GripText](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/griptext.md): Gets the text that will be drawn on the slider.
- [GripTextPure](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/griptextpure.md): Gets the text format of the number of this slider value.
- [GripTopColour](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/griptopcolour.md): Gets or sets the fill colour for the top edge of the slider grip.
- [GripWidth](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/gripwidth.md): Gets an estimate of the maximum number of pixels taken up by the grip. This property depends on many different factors, though should remain constant when other properties are not changed. If the Font hasn't been specified, the default Windows.Forms.Control font is used.
- [Maximum](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/maximum.md): Gets or sets the upper limit of the slider.
- [Minimum](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/minimum.md): Gets or sets the lower limit of the slider.
- [NormalizedValue](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/normalizedvalue.md): Gets or sets the normalized value within the slider domain.
- [Padding](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/padding.md): Gets or sets the padding around the slider border.
- [Rail](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/rail.md): Gets the shape of the rail. The height of the rectangle will be zero, but the y-position will be rounded to integer precision.
- [RailBrightColour](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/railbrightcolour.md): Gets or sets the bright colour used to draw rails and ticks.
- [RailDarkColour](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/raildarkcolour.md): Gets or sets the dark colour used to draw rails and ticks.
- [RailDisplay](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/raildisplay.md): Gets or sets how the slider rail (or track) is drawn.
- [RailEmptyColour](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/railemptycolour.md): Gets or sets the fill colour for the empty portion of the rail.
- [RailFullColour](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/railfullcolour.md): Gets or sets the fill colour for the full portion of the rail.
- [RaiseEvents](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/raiseevents.md): Gets or sets a value indicating whether this slider raises the ValueChanged event.
- [RenderDelegate_Background](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/renderdelegate-background.md): Gets or sets the delegate called after the background of the slider has been drawn.
- [RenderDelegate_Border](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/renderdelegate-border.md): Gets or sets the delegate called after the border of the slider has been drawn.
- [RenderDelegate_Grip](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/renderdelegate-grip.md): Gets or sets the delegate called after the grip of the slider has been drawn.
- [RenderDelegate_Rail](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/renderdelegate-rail.md): Gets or sets the delegate called after the rail of the slider has been drawn.
- [RenderDelegate_Ticks](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/renderdelegate-ticks.md): Gets or sets the delegate called after the ticks of the slider have been drawn.
- [ShadowSize](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/shadowsize.md): Gets or sets the size of the border shadow along all edges of the box.
- [SnapDistance](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/snapdistance.md): Gets or sets the snap distance in absolute values.
- [TextColour](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/textcolour.md): Gets or sets the fill colour for the slider text.
- [TextInputHandlerDelegate](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/textinputhandlerdelegate.md): Gets or sets the custom handler for text input. If you do not set a custom handler the default behaviour will be used.
- [TickCount](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/tickcount.md): Gets or sets the number of ticks displayed.
- [TickDisplay](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/tickdisplay.md): Gets or sets how the slider ticks are drawn.
- [TickFrequency](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/tickfrequency.md): Gets or sets the frequency of large ticks vs small ticks.
- [Ticks](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/ticks.md): Gets a list of all the tick offset x positions.
- [Type](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/type.md): Gets or sets the accuracy type of the slider.
- [Value](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/value.md): Gets or sets the value of the slider.
- [ValueF](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/valuef.md): Gets or sets the value of the slider in single precision.

## Methods

- [FixDomain](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/fixdomain.md): Fix the limits of the slider. Limits will be rounded according to slider type and accuracy. Also, a minimum range for all types is ensured.
- [FixValue](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/fixvalue.md): Fix the value of the slider. The value will be rounded according to slider type and accuracy. Also, the value will be clipped to the limits. Before you call this function, ensure the limits are set up correctly.
- [HandleTextInputAccepted](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/handletextinputaccepted.md)
- [KeyDown](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/keydown.md): Respond to a KeyDown event.
- [MouseDown](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/mousedown.md): Respond to mouse-down events.
- [MouseMove](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/mousemove.md): Respond to mouse-move events.
- [MouseUp](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/mouseup.md): Respond to mouse-up events.
- [OnValueChanged](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/onvaluechanged.md): Raise the ValueChanged event.
- [ProcessNumber](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/processnumber.md): (static) Process a number using the given slider characteristics.
- [Render](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/render.md): Render this slider into a Graphics context.
- [SetSnapRanges](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/setsnapranges.md): Assign a collection of snap ranges to this slider.
- [ShowTextInputBox](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/showtextinputbox.md): (4 overloads)

## Events

- [ValueChanged](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-sliderbase/valuechanged.md): Raised whenever the value of this slider is changed due to User-Interface methods.

## Inherited Members

- From [GH_TextBoxInputBase](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-textboxinputbase.md): [IsTextInput](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-textboxinputbase/istextinput.md), [HideTextInputBox](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-textboxinputbase/hidetextinputbox.md), [RespondToEnter](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-textboxinputbase/respondtoenter.md), [RespondToEscape](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-textboxinputbase/respondtoescape.md), [ShowTextInputBox](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-textboxinputbase/showtextinputbox.md)
