Table of Contents

Constructor ScrollBarView

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

ScrollBarView(Rect)

Initializes a new instance of the ScrollBarView class using Absolute layout.

public ScrollBarView(Rect rect)

Parameters

rect Rect

Frame for the scrollbar.

ScrollBarView(Rect, int, int, bool)

Initializes a new instance of the ScrollBarView class using Absolute layout.

public ScrollBarView(Rect rect, int size, int position, bool isVertical)

Parameters

rect Rect

Frame for the scrollbar.

size int

The size that this scrollbar represents. Sets the Size property.

position int

The position within this scrollbar. Sets the Position property.

isVertical bool

If set to true this is a vertical scrollbar, otherwise, the scrollbar is horizontal. Sets the IsVertical property.

ScrollBarView()

Initializes a new instance of the ScrollBarView class using Computed layout.

public ScrollBarView()

ScrollBarView(int, int, bool)

Initializes a new instance of the ScrollBarView class using Computed layout.

public ScrollBarView(int size, int position, bool isVertical)

Parameters

size int

The size that this scrollbar represents.

position int

The position within this scrollbar.

isVertical bool

If set to true this is a vertical scrollbar, otherwise, the scrollbar is horizontal.

ScrollBarView(View, bool, bool)

Initializes a new instance of the ScrollBarView class using Computed layout.

public ScrollBarView(View host, bool isVertical, bool showBothScrollIndicator = true)

Parameters

host View

The view that will host this scrollbar.

isVertical bool

If set to true this is a vertical scrollbar, otherwise, the scrollbar is horizontal.

showBothScrollIndicator bool

If set to true (default) will have the other scrollbar, otherwise will have only one.