TextInputDialog::Show Method (String^, String^, String^, Predicate<String^>^, String^)

Visual Studio 2015
 

Shows a text input dialog.

Namespace:   Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
static bool Show(
	String^ title,
	String^ prompt,
	String^ defaultText,
	Predicate<String^>^ validator,
	[OutAttribute] String^% text
)

Parameters

title
Type: System::String^

The title of the dialog.

prompt
Type: System::String^

The prompt text of the dialog.

defaultText
Type: System::String^

The default value of the dialog's input box.

validator
Type: System::Predicate<String^>^

text
Type: System::String^

[out] When this method returns, this parameter contains the user's input text. If the user canceled the dialog, this parameter is null.

Return Value

Type: System::Boolean

True if the user submitted the text. False if the user cancelled the dialog.

Return to top
Show: