Skip to content

API reference Obsidian.API.Client.Razor

ScrollBar class

A vertical scroll bar the player drags, or scrolls with the wheel over it, like ScrollBar: 12 pixels wide unless sized. Bind its row with @bind-Row, to the same field as an ItemGrid's @bind-FirstRow to scroll a list.

public sealed class ScrollBar : ScreenPart

In Obsidian.API.Client.

Constructors

public ScrollBar();

Properties

Handle

public string Handle { get; set; }

The handle's GUI sprite, with a _disabled one drawn while ScrollBar.MaxRow is 0.

public int HandleHeight { get; set; }

MaxRow

public int MaxRow { get; set; }

The last row it scrolls to; 0 disables it.

Row

public int Row { get; set; }

The row scrolled to, from 0 to ScrollBar.MaxRow.

RowChanged

public EventCallback<int> RowChanged { get; set; }

Raised with the new row as the player scrolls.

On this page