Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: string GetLine(string, string, string, string, string, bool)

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

stringprompt Message to display to prompt the user.
stringdefault Initial value to populate the input box with.
stringcaption Caption to use in the title bar of the dialog.
stringokButtonText Caption for the OK button.
stringcancelButtonText Caption for the Cancel button.
booluseMultilineBox 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.