# SUIScrollbar

**Members** 10

|          |                                       |                                                                               |
| -------- | ------------------------------------- | ----------------------------------------------------------------------------- |
| Function | [OnValueChanged](#onvaluechanged)     | Handling for when the scrollbar value is changed.                             |
| Property | [Size](#size)                         | The size of the scrollbar handle where 1 means it fills the entire scrollbar. |
| Property | [Value](#value)                       | The current value of the scrollbar, between 0 and 1.                          |
| Property | [NumberOfSteps](#numberofsteps)       | –                                                                             |
| Property | [NormalColor](#normalcolor)           | –                                                                             |
| Property | [HighlightedColor](#highlightedcolor) | –                                                                             |
| Property | [PressedColor](#pressedcolor)         | –                                                                             |
| Property | [DisabledColor](#disabledcolor)       | –                                                                             |
| Property | [ColorMultiplier](#colormultiplier)   | –                                                                             |
| Property | [GameObject](#gameobject)             | –                                                                             |

### OnValueChanged

void OnValueChanged(Closure callback)

Handling for when the scrollbar value is changed.

Parameters

| Name     | Type    | Default |
| -------- | ------- | ------- |
| callback | Closure | –       |

Returns

`void`

Example

**Lua**

```lua
function OCV()
--
end
Space.Host.ExecutingObject.UIScrollbar.OnValueChanged(OCV)

```

## Properties

### Size

float Size {get; set; }

The size of the scrollbar handle where 1 means it fills the entire scrollbar.

Example

**Lua**

```lua
Space.Host.ExecutingObject.UIScrollbar.Size = 0.1

```

### Value

float Value {get; set; }

The current value of the scrollbar, between 0 and 1.

Example

**Lua**

```lua
Space.Host.ExecutingObject.UIScrollbar.Value = 0.5

```

### NumberOfSteps

int NumberOfSteps {get; set; }

Example

**Lua**

```lua
Space.Host.ExecutingObject.UIScrollbar.NumberOfSteps = 2

```

### NormalColor

[SColor](/docs/scripting/client-scripting-api-reference/types/scolor.md) NormalColor {get; set; }

Example

**Lua**

```lua
Space.Host.ExecutingObject.UIScrollbar.NormalColor = Color.Red

```

### HighlightedColor

[SColor](/docs/scripting/client-scripting-api-reference/types/scolor.md) HighlightedColor {get; set; }

Example

**Lua**

```lua
Space.Host.ExecutingObject.UIScrollbar.HighlightedColor = Color.Red

```

### PressedColor

[SColor](/docs/scripting/client-scripting-api-reference/types/scolor.md) PressedColor {get; set; }

Example

**Lua**

```lua
Space.Host.ExecutingObject.UIScrollbar.PressedColor = Color.Red

```

### DisabledColor

[SColor](/docs/scripting/client-scripting-api-reference/types/scolor.md) DisabledColor {get; set; }

Example

**Lua**

```lua
Space.Host.ExecutingObject.UIScrollbar.DisabledColor = Color.Red

```

### ColorMultiplier

float ColorMultiplier {get; set; }

Example

**Lua**

```lua
Space.Host.ExecutingObject.UIScrollbar.ColorMultiplier = Color.Red

```

### GameObject

[SGameObject](/docs/scripting/client-scripting-api-reference/types/sgameobject.md) GameObject {get; }

Example

**Lua**

```lua
theGameObject = Space.Host.ExecutingObject.UIScrollbar.GameObject

```
