InputLanguage.InstalledInputLanguages Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a list of all installed input languages.
public:
static property System::Windows::Forms::InputLanguageCollection ^ InstalledInputLanguages { System::Windows::Forms::InputLanguageCollection ^ get(); };
public static System.Windows.Forms.InputLanguageCollection InstalledInputLanguages { get; }
static member InstalledInputLanguages : System.Windows.Forms.InputLanguageCollection
Public Shared ReadOnly Property InstalledInputLanguages As InputLanguageCollection
Property Value
An array of InputLanguage objects that represent the input languages installed on the computer.
Examples
The following code example retrieves all the input languages installed on the computer and displays their names. The code calls InstalledInputLanguages to get the installed languages. A text box displays the list of language names.
This code assumes that textBox1
has been instantiated and that textBox1.MultiLine
has been set to true
.
public:
void GetLanguages()
{
// Gets the list of installed languages.
for each ( InputLanguage^ lang in InputLanguage::InstalledInputLanguages )
{
textBox1->Text = String::Concat( textBox1->Text, lang->Culture->EnglishName, "\n" );
}
}
public void GetLanguages() {
// Gets the list of installed languages.
foreach(InputLanguage lang in InputLanguage.InstalledInputLanguages) {
textBox1.Text += lang.Culture.EnglishName + '\n';
}
}
Public Sub GetLanguages()
' Gets the list of installed languages.
Dim lang As InputLanguage
For Each lang In InputLanguage.InstalledInputLanguages
textBox1.Text &= lang.Culture.EnglishName & ControlChars.Cr
Next lang
End Sub
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기