Table of Contents

Constructor Dialog

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Dialog(ustring, int, int, params Button[])

Initializes a new instance of the Dialog class using Computed positioning and an optional set of Buttons to display

public Dialog(ustring title, int width, int height, params Button[] buttons)

Parameters

title ustring

Title for the dialog.

width int

Width for the dialog.

height int

Height for the dialog.

buttons Button[]

Optional buttons to lay out at the bottom of the dialog.

Remarks

if width and height are both 0, the Dialog will be vertically and horizontally centered in the container and the size will be 85% of the container. After initialization use X, Y, Width, and Height to override this with a location or size.

Dialog()

Initializes a new instance of the Dialog class using Computed.

public Dialog()

Remarks

Te Dialog will be vertically and horizontally centered in the container and the size will be 85% of the container. After initialization use X, Y, Width, and Height to override this with a location or size.

Use AddButton(Button) to add buttons to the dialog.

Dialog(ustring, params Button[])

Initializes a new instance of the Dialog class using Computed positioning and with an optional set of Buttons to display

public Dialog(ustring title, params Button[] buttons)

Parameters

title ustring

Title for the dialog.

buttons Button[]

Optional buttons to lay out at the bottom of the dialog.

Remarks

Te Dialog will be vertically and horizontally centered in the container and the size will be 85% of the container. After initialization use X, Y, Width, and Height to override this with a location or size.