Method Query
Query(int, int, string, string, params string[])
Presents a MessageBox with the specified title and message and a list of buttons.
public static int Query(int width, int height, string title, string message, params string[] buttons)
Parameters
width
intWidth for the MessageBox.
height
intHeight for the MessageBox.
title
stringTitle for the MessageBox.
message
stringMessage to display; might contain multiple lines. The message will be word=wrapped by default.
buttons
string[]Array of buttons to add.
Returns
Remarks
Use Query(string, string, params string[]) instead; it automatically sizes the MessageBox based on the contents.
Query(string, string, params string[])
Presents a MessageBox with the specified title and message and a list of buttons.
public static int Query(string title, string message, params string[] buttons)
Parameters
title
stringTitle for the MessageBox.
message
stringMessage to display; might contain multiple lines. The message will be word=wrapped by default.
buttons
string[]Array of buttons to add.
Returns
Remarks
The message box will be vertically and horizontally centered in the container and the size will be automatically determined from the size of the title, message. and buttons.
Use Query(string, string, params string[]) instead; it automatically sizes the MessageBox based on the contents.
Query(int, int, string, string, int, params string[])
Presents a MessageBox with the specified title and message and a list of buttons.
public static int Query(int width, int height, string title, string message, int defaultButton = 0, params string[] buttons)
Parameters
width
intWidth for the window.
height
intHeight for the window.
title
stringTitle for the MessageBox.
message
stringMessage to display; might contain multiple lines. The message will be word=wrapped by default.
defaultButton
intIndex of the default button.
buttons
string[]Array of buttons to add.
Returns
Remarks
The message box will be vertically and horizontally centered in the container and the size will be automatically determined from the size of the title, message. and buttons.
Use Query(string, string, params string[]) instead; it automatically sizes the MessageBox based on the contents.
Query(string, string, int, params string[])
Presents a MessageBox with the specified title and message and a list of buttons.
public static int Query(string title, string message, int defaultButton = 0, params string[] buttons)
Parameters
title
stringTitle for the MessageBox.
message
stringMessage to display; might contain multiple lines. The message will be word=wrapped by default.
defaultButton
intIndex of the default button.
buttons
string[]Array of buttons to add.
Returns
Remarks
The message box will be vertically and horizontally centered in the container and the size will be automatically determined from the size of the message and buttons.
Query(int, int, string, string, int, bool, params string[])
Presents a MessageBox with the specified title and message and a list of buttons to show to the user.
public static int Query(int width, int height, string title, string message, int defaultButton = 0, bool wrapMessage = true, params string[] buttons)
Parameters
width
intWidth for the window.
height
intHeight for the window.
title
stringTitle for the query.
message
stringMessage to display, might contain multiple lines.
defaultButton
intIndex of the default button.
wrapMessage
boolIf wrap the message or not.
buttons
string[]Array of buttons to add.
Returns
Remarks
Use Query(string, string, params string[]) instead; it automatically sizes the MessageBox based on the contents.
Query(string, string, int, bool, params string[])
Presents a MessageBox with the specified title and message and a list of buttons to show to the user.
public static int Query(string title, string message, int defaultButton = 0, bool wrapMessage = true, params string[] buttons)
Parameters
title
stringTitle for the query.
message
stringMessage to display, might contain multiple lines.
defaultButton
intIndex of the default button.
wrapMessage
boolIf wrap the message or not.
buttons
string[]Array of buttons to add.