Table of Contents

Method MakeCenteredRect

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

MakeCenteredRect(Size)

Returns a rectangle that is centered in the screen for the provided size.

public static Rect MakeCenteredRect(Size size)

Parameters

size Size

Size for the rectangle.

Returns

Rect

The centered rect.