# GH_Slider class

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

```cs
public class GH_Slider : GH_TextInputBaseControl
```

Provides a standard Grasshopper slider as a winforms control.

## Constructors

- [GH_Slider](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/ctor.md)

## Properties

- [ControlEdgeColour](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/controledgecolour.md): Gets or sets the EdgeColor for this slider control.
- [ControlShadowColour](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/controlshadowcolour.md): Gets or sets the Shadow colour for this control.
- [DecimalPlaces](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/decimalplaces.md): Gets or sets the number of decimal places allowed for Floating Point Sliders.
- [DrawControlBorder](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/drawcontrolborder.md): Gets or sets whether the border of the slider should be drawn.
- [DrawControlShadows](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/drawcontrolshadows.md): Gets or sets whether the drop shadows of the slider should be drawn.
- [FormatMask](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/formatmask.md): Gets or sets the string format mask to use for the display. Should contain at least one "{0}" element.
- [GripBottomColour](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/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.gh-slider/gripdisplay.md): Gets or sets how the slider grip (or thumb) is drawn.
- [GripEdgeColour](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/gripedgecolour.md): Gets or sets the edge colour for the slider grip.
- [GripTopColour](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/griptopcolour.md): Gets or sets the fill colour for the top edge of the slider grip.
- [InternalSlider](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/internalslider.md): Gets the internal slider.
- [Maximum](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/maximum.md): Gets or sets the upper numeric limit for the slider range.
- [Minimum](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/minimum.md): Gets or sets the lower numeric limit for the slider range.
- [RailBrightColour](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/railbrightcolour.md): Gets or sets the edge colour for the bright parts of the rail.
- [RailDarkColour](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/raildarkcolour.md): Gets or sets the edge colour for the dark parts of the rail.
- [RailDisplay](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/raildisplay.md): Gets or sets how the slider rail (or track) is drawn.
- [RailEmptyColour](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/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.gh-slider/railfullcolour.md): Gets or sets the fill colour for the full portion of the rail.
- [ShadowSize](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/shadowsize.md): Gets or sets the size of the border shadow along all edges of the box.
- [TextColour](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/textcolour.md): Gets or sets the fill colour for the slider text.
- [TickCount](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/tickcount.md): Gets or sets the number of ticks.
- [TickDisplay](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/tickdisplay.md): Gets or sets how the slider ticks are drawn.
- [TickFrequency](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/tickfrequency.md): Gets or sets the frequency of large ticks vs small ticks.
- [Type](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/type.md): Gets or sets the numeric type of this slider.
- [Value](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/value.md): Gets or sets the numeric value for the slider range.

## Methods

- [Input_Assign](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/input-assign.md)
- [Input_Parse](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/input-parse.md)
- [Input_Supply](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/input-supply.md)
- [OnPaint](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/onpaint.md)
- [OnPaintBackground](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/onpaintbackground.md)

## Events

- [ValueChanged](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-slider/valuechanged.md): Raised whenever the value of the slider is changed via GUI interaction.

## Inherited Members

- From [GH_TextInputBaseControl](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-textinputbasecontrol.md): [IsTextInputActive](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-textinputbasecontrol/istextinputactive.md), [ShowTextInputOnDoubleClick](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-textinputbasecontrol/showtextinputondoubleclick.md), [ShowTextInputOnKeyDown](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-textinputbasecontrol/showtextinputonkeydown.md), [Dispose](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-textinputbasecontrol/dispose.md), [HideTextInput](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-textinputbasecontrol/hidetextinput.md), [ShowTextInput](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-textinputbasecontrol/showtextinput.md)
