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

stringpromptMessage to display to prompt the user.
stringdefaultInitial value to populate the input box with.
stringcaptionCaption to use in the title bar of the dialog.
stringokButtonTextCaption for the OK button.
stringcancelButtonTextCaption for the Cancel button.
booluseMultilineBoxIf 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.