Table of Contents

Method CalculateSize

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

CalculateSize(int, int, int)

Gets the slider size.

public static int CalculateSize(int scrollableContentSize, int visibleContentSize, int sliderBounds)

Parameters

scrollableContentSize int

The size of the content.

visibleContentSize int

The size of the visible content.

sliderBounds int

The bounds of the area the slider moves in (e.g. the size of the ScrollBar minus 2).

Returns

int