TextInputDialog::Show Method (String^, String^, Int32, String^, Predicate<String^>^, String^)
Visual Studio 2015
Shows a text input dialog.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
public: static bool Show( String^ title, String^ prompt, int maxLength, 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.
- maxLength
-
Type:
System::Int32
The maximum length of dialog's input.
- defaultText
-
Type:
System::String^
The default value of the dialog's input box.
- validator
-
Type:
System::Predicate<String^>^
The predicate to evaluate whether the input should be accepted.
- 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::BooleanTrue if the user submitted the text. False if the user cancelled the dialog.
Show: