Share via


HOW TO:設定 Pocket PC 輸入法

更新:2007 年 11 月

Pocket PC 包含一組輸入法的集合,可指定使用者如何輸入文字和資料。當您設定 InputPanelCurrentInputMethod 屬性時,即會啟用輸入法,直到使用者變更為止。

Pocket PC 具有下列輸入法,這些輸入法會依製造商而有所不同:

  • 全螢幕手寫辨識

  • 鍵盤

  • 字母辨識器

  • 區塊辨識器

InputPanel.InputMethodCollection 可以存取裝置上所安裝的輸入法。您可以使用名稱或 GUID (Name 屬性或 Clsid 屬性) 識別輸入法。

範例

下列程式碼範例會將指定的輸入法與集合中的輸入法比對,設定慣用的輸入法。

For Each m As Microsoft.WindowsCE.Forms.InputMethod In InputPanel1.InputMethods
    If m.Name = "Letter Recognizer" Then
        InputPanel1.CurrentInputMethod = m
    End If
Next
InputPanel1.Enabled = True
foreach (InputMethod m in inputPanel1.InputMethods)
{
    if (m.Name == "Letter Recognizer")
        inputPanel1.CurrentInputMethod = m;
}
inputPanel1.Enabled = true;

編譯程式碼

這個範例需要參考下列命名空間:

請參閱

參考

InputPanel.InputMethodCollection

其他資源

Pocket PC 開發和 .NET Compact Framework