InputPanel.InputMethods 属性

获取在 Pocket PC 上可用的输入法的集合。

命名空间:  Microsoft.WindowsCE.Forms
程序集:  Microsoft.WindowsCE.Forms(在 Microsoft.WindowsCE.Forms.dll 中)

语法

声明
Public ReadOnly Property InputMethods As InputPanel..::.InputMethodCollection
用法
Dim instance As InputPanel
Dim value As InputPanel..::.InputMethodCollection

value = instance.InputMethods
public InputPanel..::.InputMethodCollection InputMethods { get; }
public:
property InputPanel..::.InputMethodCollection^ InputMethods {
    InputPanel..::.InputMethodCollection^ get ();
}
public function get InputMethods () : InputPanel..::.InputMethodCollection

属性值

类型:Microsoft.WindowsCE.Forms.InputPanel.InputMethodCollection

一个表示输入法的集合的对象。

备注

此集合包含设备上安装的所有输入法。

示例

下面的示例使用可用的输入法填充一个列表框。此示例摘自为 InputPanel.InputMethodCollection 类提供的一个更大的示例。

Private Sub GetInputMethods()
    Me.ListBox1.Items.Clear()

    ' Get the InputMethods collection and
    ' add each method to the list box.
    Dim im As InputMethod
    For Each im In  InputPanel1.InputMethods
       Me.ListBox1.Items.Add(im.Name)
    Next im
End Sub
// Get the InputMethods collection and
// add each method to the list box.
foreach (InputMethod im in ip.InputMethods)
{
 this.listBox1.Items.Add(im.Name);
}

权限

平台

Windows CE, Windows Mobile for Pocket PC

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Compact Framework

受以下版本支持:3.5、2.0

另请参见

参考

InputPanel 类

InputPanel 成员

Microsoft.WindowsCE.Forms 命名空间