Show / Hide Table of Contents

Class MessageBox

Message box displays a modal message to the user, with a title, a message and a series of options that the user can choose from.

Inheritance
System.Object
MessageBox
Namespace: Terminal
Assembly: Terminal.dll
Syntax
public class MessageBox

Constructors

MessageBox()

Declaration
public MessageBox ();

Methods

Query(Int32, Int32, String, String, String[])

Runs the dialog bo

Declaration
public static int Query (int width, int height, string title, string message, string[] buttons);
Parameters
Type Name Description
System.Int32 width

Width for the window.

System.Int32 height

Height for the window.

System.String title

Title for the query.

System.String message

Message to display, might contain multiple lines..

System.String[] buttons

Array of buttons to add.

Returns
Type Description
System.Int32

The index of the selected button, or -1 if the user pressed ESC to close the dialog.

Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX