InputLanguageManager InputLanguageManager InputLanguageManager InputLanguageManager Class

定義

Windows Presentation Foundation (WPF) で入力言語を管理するための機能を提供します。Provides facilities for managing input languages in Windows Presentation Foundation (WPF).

public ref class InputLanguageManager sealed : System::Windows::Threading::DispatcherObject
public sealed class InputLanguageManager : System.Windows.Threading.DispatcherObject
type InputLanguageManager = class
    inherit DispatcherObject
Public NotInheritable Class InputLanguageManager
Inherits DispatcherObject
継承
InputLanguageManagerInputLanguageManagerInputLanguageManagerInputLanguageManager

次の例では、使用する方法、InputLanguageManagerの入力言語を設定する、TextBox要素。The following example demonstrates how to use an InputLanguageManager to set the input language of a TextBox element.

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

注釈

その他の言語は、地域と言語のオプションのコントロール パネルを使用して登録できます。Additional languages can be registered by using the Regional and Language Options control panel. 言語 タブで、「テキスト サービスと入力言語」を選択し、その他の言語を登録する「詳細」ボタンをクリックします。From the Languages tab, select "Text Services and input languages", then click the "Details" button to register additional languages. 次のダイアログ ボックスが表示されます。The following dialog appears.

テキスト サービスと入力言語ダイアログ ボックス。Text services and input languages dialog.

フィールド

InputLanguageProperty InputLanguageProperty InputLanguageProperty InputLanguageProperty

InputLanguage 添付プロパティを識別します。Identifies the InputLanguage attached property.

RestoreInputLanguageProperty RestoreInputLanguageProperty RestoreInputLanguageProperty RestoreInputLanguageProperty

RestoreInputLanguage 添付プロパティを識別します。Identifies the RestoreInputLanguage attached property.

プロパティ

AvailableInputLanguages AvailableInputLanguages AvailableInputLanguages AvailableInputLanguages

現在使用可能な入力言語の列挙子を取得します。Gets an enumerator for currently available input languages.

Current Current Current Current

現在のコンテキストに関連付けられている入力言語マネージャーを取得します。Gets the input language manager associated with the current context.

CurrentInputLanguage CurrentInputLanguage CurrentInputLanguage CurrentInputLanguage

現在の入力言語を取得または設定します。Gets or sets the current input language.

Dispatcher Dispatcher Dispatcher Dispatcher

取得、DispatcherこのDispatcherObjectに関連付けられています。Gets the Dispatcher this DispatcherObject is associated with.

(Inherited from DispatcherObject)

添付プロパティ

InputLanguage InputLanguage InputLanguage InputLanguage

関連付けられた依存関係オブジェクトの優先入力言語を取得または設定します。Gets or sets the preferred input language for the associated dependency object.

RestoreInputLanguage RestoreInputLanguage RestoreInputLanguage RestoreInputLanguage

関連付けられた依存関係オブジェクトが入力フォーカスを失ったときに、以前にアクティブだった入力言語を復元するかどうかを示す値を取得または設定します。Gets or sets a value that indicates whether or not the previously active input language should be restored when the associated dependency object looses the input focus.

メソッド

CheckAccess() CheckAccess() CheckAccess() CheckAccess()

呼び出し元のスレッドが、これに対するアクセス権を持つかどうかを判断しますDispatcherObjectします。Determines whether the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

指定したオブジェクトが、現在のオブジェクトと等しいかどうかを判断します。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

既定のハッシュ関数として機能します。Serves as the default hash function.

(Inherited from Object)
GetInputLanguage(DependencyObject) GetInputLanguage(DependencyObject) GetInputLanguage(DependencyObject) GetInputLanguage(DependencyObject)

指定した依存関係オブジェクトの InputLanguage 添付プロパティの値を返します。Returns the value of the InputLanguage attached property for a specified dependency object.

GetRestoreInputLanguage(DependencyObject) GetRestoreInputLanguage(DependencyObject) GetRestoreInputLanguage(DependencyObject) GetRestoreInputLanguage(DependencyObject)

指定した依存関係オブジェクトの RestoreInputLanguage 添付プロパティの値を返します。Returns the value of RestoreInputLanguage attached property for a specified dependency object.

GetType() GetType() GetType() GetType()

現在のインスタンスの Type を取得します。Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object.

(Inherited from Object)
RegisterInputLanguageSource(IInputLanguageSource) RegisterInputLanguageSource(IInputLanguageSource) RegisterInputLanguageSource(IInputLanguageSource) RegisterInputLanguageSource(IInputLanguageSource)

入力言語ソースを InputLanguageManager に登録します。Registers an input language source with the InputLanguageManager.

ReportInputLanguageChanged(CultureInfo, CultureInfo) ReportInputLanguageChanged(CultureInfo, CultureInfo) ReportInputLanguageChanged(CultureInfo, CultureInfo) ReportInputLanguageChanged(CultureInfo, CultureInfo)

入力言語の変更完了を InputLanguageManager に報告します。Report the completion of a change of input language to the InputLanguageManager.

ReportInputLanguageChanging(CultureInfo, CultureInfo) ReportInputLanguageChanging(CultureInfo, CultureInfo) ReportInputLanguageChanging(CultureInfo, CultureInfo) ReportInputLanguageChanging(CultureInfo, CultureInfo)

入力言語の変更開始を InputLanguageManager に報告します。Report the initiation of a change of input language to the InputLanguageManager.

SetInputLanguage(DependencyObject, CultureInfo) SetInputLanguage(DependencyObject, CultureInfo) SetInputLanguage(DependencyObject, CultureInfo) SetInputLanguage(DependencyObject, CultureInfo)

指定した依存関係オブジェクトの InputLanguage 添付プロパティの値を設定します。Sets the value of the InputLanguage attached property on the specified dependency object.

SetRestoreInputLanguage(DependencyObject, Boolean) SetRestoreInputLanguage(DependencyObject, Boolean) SetRestoreInputLanguage(DependencyObject, Boolean) SetRestoreInputLanguage(DependencyObject, Boolean)

指定した依存関係オブジェクトの RestoreInputLanguage 依存関係プロパティの値を設定します。Sets the value of the RestoreInputLanguage dependency property on the specified dependency object.

ToString() ToString() ToString() ToString()

現在のオブジェクトを表す文字列を返します。Returns a string that represents the current object.

(Inherited from Object)
VerifyAccess() VerifyAccess() VerifyAccess() VerifyAccess()

呼び出し元のスレッドがこのへのアクセスを強制DispatcherObjectします。Enforces that the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)

イベント

InputLanguageChanged InputLanguageChanged InputLanguageChanged InputLanguageChanged

入力言語の変更が完了したときに発生します。Occurs when a change of input language is completed.

InputLanguageChanging InputLanguageChanging InputLanguageChanging InputLanguageChanging

入力言語の変更が開始されたときに発生します。Occurs when a change of input language is initiated.

適用対象

こちらもご覧ください