InputLanguage.Handle プロパティ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)


現在の入力言語を取得するコード例を次に示します。続いて、Handle を呼び出してハンドルを取得し、その結果をテキスト ボックスに出力します。この例は、textBox1 がインスタンス化されていることを前提にしています。
Public Sub MyHandle() ' Gets the current input language. Dim myCurrentLanguage As InputLanguage = InputLanguage.CurrentInputLanguage ' Gets a handle for the language and prints the number. Dim myHandle As IntPtr = myCurrentLanguage.Handle textBox1.Text = "The handle number is: " & myHandle.ToString() End Sub
public void MyHandle() { // Gets the current input language. InputLanguage myCurrentLanguage = InputLanguage.CurrentInputLanguage; // Gets a handle for the language and prints the number. IntPtr myHandle = myCurrentLanguage.Handle; textBox1.Text = "The handle number is: " + myHandle.ToString(); }
public: void MyHandle() { // Gets the current input language. InputLanguage^ myCurrentLanguage = InputLanguage::CurrentInputLanguage; // Gets a handle for the language and prints the number. IntPtr myHandle = myCurrentLanguage->Handle; textBox1->Text = String::Format( "The handle number is: {0}", myHandle ); }
public void MyHandle() { // Gets the current input language. InputLanguage myCurrentLanguage = InputLanguage.get_CurrentInputLanguage(); // Gets a handle for the language and prints the number. IntPtr myHandle = myCurrentLanguage.get_Handle(); textBox1.set_Text("The handle number is: " + myHandle.ToString()); } //MyHandle

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からInputLanguage.Handle プロパティを検索する場合は、下記のリンクをクリックしてください。

- InputLanguage.Handle プロパティのページへのリンク