# ScrollBar class

Namespace: [Grasshopper2.UI.Canvas](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.canvas.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public abstract class ScrollBar
```

Abstract base class for horizontal and vertical scrollers.

**Derived types:** [ScrollX](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.scrollx.md), [ScrollY](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.scrolly.md)

## Constructors

- [ScrollBar](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.scrollbar/ctor.md)

## Fields

- [_atts](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.scrollbar/atts.md)
- [_fade](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.scrollbar/fade.md): (2 overloads)

## Properties

- [ActiveRegion](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.scrollbar/activeregion.md): Gets the active region for this scroller. If the mouse leaves the active region we assume the scrollbar ought to fade.
- [Canvas](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.scrollbar/canvas.md): Gets the canvas this scroller is tied to.
- [Dragging](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.scrollbar/dragging.md): Gets or sets whether this scrollbar is currently being dragged.
- [Fading](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.scrollbar/fading.md)
- [Grip](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.scrollbar/grip.md)
- [HasFaded](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.scrollbar/hasfaded.md): Gets whether this scrollbar has completely faded out and can be culled. Note that ValueNow is only meaningful after the animation has been evaluated at least once, and Draw() skips evaluation entirely while the grip is empty. A freshly created fade-in bar therefore also reports a ValueNow of zero, so we additionally require the bar to actually be fading out before declaring it dead.
- [ParallelScrollers](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.scrollbar/parallelscrollers.md): Enumerate over all parallel scrolling objects.
- [Rail](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.scrollbar/rail.md)
- [Target](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.scrollbar/target.md): Gets target scroller object.

## Methods

- [AddParallelScroller](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.scrollbar/addparallelscroller.md): Add a parallel scrolling object.
- [BeginDrag](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.scrollbar/begindrag.md)
- [BeginDragInternal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.scrollbar/begindraginternal.md)
- [ContinueDrag](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.scrollbar/continuedrag.md)
- [ContinueDragInternal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.scrollbar/continuedraginternal.md)
- [Draw](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.scrollbar/draw.md)
- [EndDrag](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.scrollbar/enddrag.md)
