Table of Contents

Method GetInside

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

GetInside(Rectangle)

Returns a rectangle describing the location and size of the inside area of rect with the thickness widths subtracted. The height and width of the returned rectangle will never be less than 0.

public Rectangle GetInside(Rectangle rect)

Parameters

rect Rectangle

The source rectangle

Returns

Rectangle

Remarks

If a thickness width is negative, the inside rectangle will be larger than rect. e.g. a Thickness (-1, -1, -1, -1) will result in a rectangle skewed -1 in the X and Y directions and with a Size increased by 1.