InputLanguageManager.Current Свойство

Определение

Получает диспетчер языка ввода, связанный с текущим контекстом.Gets the input language manager associated with the current context.

public:
 static property System::Windows::Input::InputLanguageManager ^ Current { System::Windows::Input::InputLanguageManager ^ get(); };
public static System.Windows.Input.InputLanguageManager Current { get; }
member this.Current : System.Windows.Input.InputLanguageManager
Public Shared ReadOnly Property Current As InputLanguageManager

Значение свойства

Объект InputLanguageManager, связанный с текущим контекстом.An InputLanguageManager object associated with the current context.

Это свойство не имеет значения по умолчанию.This property has no default value.

Примеры

В следующем примере показано, как использовать InputLanguageManager для доступа к диспетчеру языка, связанному с текущим контекстом.The following example demonstrates how to use an InputLanguageManager to access the language manager associated with the current context.

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()

Применяется к