Declaration
public static string GetLine(
string prompt,
string default = "",
string caption = "Please enter text",
string okButtonText = null,
string cancelButtonText = null,
bool useMultilineBox = false
)
Summary
Prompts the user for input.
Parameters
string | prompt |
Message to display to prompt the user. |
string | default |
Initial value to populate the input box with. |
string | caption |
Caption to use in the title bar of the dialog. |
string | okButtonText |
Caption for the OK button. |
string | cancelButtonText |
Caption for the Cancel button. |
bool | useMultilineBox |
If true, a multi-line textbox is used, allowing the user to enter multiple lines of text. |
Returns
The text entered by the user, or null if the user selected the Cancel button.