Share via


InputPanel.CurrentInputMethod-Eigenschaft

Dieser Dokumentation für die Vorschau nur ist und in späteren Versionen geändert. Leere Themen wurden als Platzhalter eingefügt.]

Ruft die Eingabemethode für den Pocket PC ab.

Namespace:  Microsoft.WindowsCE.Forms
Assembly:  Microsoft.WindowsCE.Forms (in Microsoft.WindowsCE.Forms.dll)

Syntax

'Declaration
Public Property CurrentInputMethod As InputMethod
    Get
    Set
'Usage
Dim instance As InputPanel
Dim value As InputMethod

value = instance.CurrentInputMethod

instance.CurrentInputMethod = value
public InputMethod CurrentInputMethod { get; set; }
public:
property InputMethod^ CurrentInputMethod {
    InputMethod^ get ();
    void set (InputMethod^ value);
}
member CurrentInputMethod : InputMethod with get, set

Eigenschaftswert

Typ: Microsoft.WindowsCE.Forms.InputMethod
Ein Objekt, eine Eingabemethode darstellt.

Hinweise

Sie können diese Eigenschaft auf dem Gerät auf eine beliebige der verfügbaren Eingabemethoden festlegen.

Beispiele

Im folgenden Beispiel wird diese Eigenschaft an eine Methode im Listenfeld ausgewählt.In diesem Beispiel ist Teil eines umfangreicheren Beispiels für die InputPanel.InputMethodCollection-Klasse bereitgestellt wird.

' This event handler iterates through the' InputMethodCollection and sets the input method' to the input method selected in the list box.' When a member of the collection is the' same the selected value in the list box, that' method is set to the current input method.PrivateSub ListBox1_SelectedIndexChanged(sender AsObject, e As EventArgs) Handles ListBox1.SelectedIndexChanged

   ' Get the selected input method from the list box.Dim strIM AsString
   strIM = ListBox1.SelectedItem.ToString()

   ' Iterate through the input method collection.   ' When there is a match with the input method   ' selected in the list box, set the   ' CurrentInputMethod property to the selected method.Dim im As InputMethod
   ForEach im In  InputPanel1.InputMethods
      If im.Name = strIM Then         ' Change the input method.
         InputPanel1.CurrentInputMethod = im
      EndIfNext im
EndSub
// Get the selected input method from the list box.string strIM;
strIM = listBox1.SelectedItem.ToString();

// Iterate through the input method collection.// When there is a match with the input method// selected in the list box, set the// CurrentInputMethod property to the selected method.foreach (InputMethod im in ip.InputMethods)
{
 if (im.Name == strIM)
  // Change the input method.
  ip.CurrentInputMethod = im;
}

.NET Framework-Sicherheit

Plattformen

Windows CE, Windows Mobile für Pocket PC

Die .NET Framework und .NET Compact Framework unterstützen nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET framework.

Versionsinformationen

.NET Compact Framework

Unterstützt in: 3.5, 2.0

Siehe auch

Referenz

InputPanel Klasse

Member InputPanel

Microsoft.WindowsCE.Forms-Namespace