InputLanguageManager.AvailableInputLanguages 속성

정의

현재 사용할 수 있는 입력 언어의 열거자를 가져옵니다.Gets an enumerator for currently available input languages.

public:
 property System::Collections::IEnumerable ^ AvailableInputLanguages { System::Collections::IEnumerable ^ get(); };
public System.Collections.IEnumerable AvailableInputLanguages { get; }
member this.AvailableInputLanguages : System.Collections.IEnumerable
Public ReadOnly Property AvailableInputLanguages As IEnumerable

속성 값

현재 사용할 수 있는 입력된 언어에 대 한 열거자 또는 null 입력된 언어가 사용 가능한 경우.An enumerator for currently available input languages, or null if no input languages are available. 이 속성에는 기본값이 없습니다.This property has no default value.

예제

다음 예제에 사용 하는 방법을 보여 줍니다.는 InputLanguageManager 사용 가능한 입력된 언어를 열거할 수 있습니다.The following example demonstrates how to use an InputLanguageManager to enumerate the available input languages.

this.Dispatcher.Thread.CurrentCulture.Name.ToString();
InputLanguageManager.SetInputLanguage(myTextBox, CultureInfo.CreateSpecificCulture("fr"));
tb2.Text = "Available Input Languages:";
lb1.ItemsSource = InputLanguageManager.Current.AvailableInputLanguages;
tb3.Text = "Input Language of myTextBox is " + InputLanguageManager.GetInputLanguage(myTextBox).ToString();
tb4.Text = "CurrentCulture is Set to " + this.Dispatcher.Thread.CurrentCulture.Name.ToString();
Me.Dispatcher.Thread.CurrentCulture.Name.ToString()
InputLanguageManager.SetInputLanguage(myTextBox, CultureInfo.CreateSpecificCulture("fr"))
tb2.Text = "Available Input Languages:"
lb1.ItemsSource = InputLanguageManager.Current.AvailableInputLanguages
tb3.Text = "Input Language of myTextBox is " & InputLanguageManager.GetInputLanguage(myTextBox).ToString()
tb4.Text = "CurrentCulture is Set to " & Me.Dispatcher.Thread.CurrentCulture.Name.ToString()

적용 대상