Table of Contents

Constructor Window

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Window(Rect, ustring)

Initializes a new instance of the Window class with an optional title using Absolute positioning.

public Window(Rect frame, ustring title = null)

Parameters

frame Rect

Superview-relative rectangle specifying the location and size

title ustring

Title

Remarks

This constructor initializes a Window with a LayoutStyle of Absolute. Use constructors that do not take Rect parameters to initialize a Window with Computed.

Window(ustring)

Initializes a new instance of the Window class with an optional title using Computed positioning.

public Window(ustring title = null)

Parameters

title ustring

Title.

Remarks

This constructor initializes a View with a LayoutStyle of Computed. Use X, Y, Width, and Height properties to dynamically control the size and location of the view.

Window()

Initializes a new instance of the Window class using Computed positioning.

public Window()

Window(Rect, ustring, int, Border)

Initializes a new instance of the Window using Absolute positioning with the specified frame for its location, with the specified frame padding, and an optional title.

public Window(Rect frame, ustring title = null, int padding = 0, Border border = null)

Parameters

frame Rect

Superview-relative rectangle specifying the location and size

title ustring

Title

padding int

Number of characters to use for padding of the drawn frame.

border Border

The Border.

Remarks

This constructor initializes a Window with a LayoutStyle of Absolute. Use constructors that do not take Rect parameters to initialize a Window with LayoutStyle of Computed

Window(ustring, int, Border)

Initializes a new instance of the Window using Computed positioning, and an optional title.

public Window(ustring title = null, int padding = 0, Border border = null)

Parameters

title ustring

Title.

padding int

Number of characters to use for padding of the drawn frame.

border Border

The Border.

Remarks

This constructor initializes a View with a LayoutStyle of Computed. Use X, Y, Width, and Height properties to dynamically control the size and location of the view.