Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Ruft das Handle für die Eingabesprache ab.
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)
Syntax
'Declaration
Public ReadOnly Property Handle As IntPtr
'Usage
Dim instance As InputLanguage
Dim value As IntPtr
value = instance.Handle
public IntPtr Handle { get; }
public:
property IntPtr Handle {
IntPtr get ();
}
/** @property */
public IntPtr get_Handle ()
public function get Handle () : IntPtr
Eigenschaftenwert
Ein IntPtr, der das Handle dieser Eingabesprache darstellt.
Beispiel
Im folgenden Codebeispiel wird die aktuelle Eingabesprache abgerufen. Anschließend wird Handle aufgerufen, um das Handle abzurufen, und das Ergebnis wird in einem Textfeld angezeigt. Für das Beispiel ist es erforderlich, dass textBox1 als Instanz definiert wurde.
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
Plattformen
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
Siehe auch
Referenz
InputLanguage-Klasse
InputLanguage-Member
System.Windows.Forms-Namespace
InputLanguage.CurrentInputLanguage-Eigenschaft