Table of Contents

Method DrawWindowFrame

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

DrawWindowFrame(Rect, int, int, int, int, bool, bool, Border)

Draws a frame for a window with padding and an optional visible border inside the padding.

public virtual void DrawWindowFrame(Rect region, int paddingLeft = 0, int paddingTop = 0, int paddingRight = 0, int paddingBottom = 0, bool border = true, bool fill = false, Border borderContent = null)

Parameters

region Rect

Screen relative region where the frame will be drawn.

paddingLeft int

Number of columns to pad on the left (if 0 the border will not appear on the left).

paddingTop int

Number of rows to pad on the top (if 0 the border and title will not appear on the top).

paddingRight int

Number of columns to pad on the right (if 0 the border will not appear on the right).

paddingBottom int

Number of rows to pad on the bottom (if 0 the border will not appear on the bottom).

border bool

If set to true and any padding dimension is > 0 the border will be drawn.

fill bool

If set to true it will clear the content area (the area inside the padding) with the current color, otherwise the content area will be left untouched.

borderContent Border

The Border to be used if defined.