InputMethod.Name 属性

获取输入法的名称。

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

语法

声明
Public ReadOnly Property Name As String
用法
Dim instance As InputMethod
Dim value As String

value = instance.Name
public string Name { get; }
public:
property String^ Name {
    String^ get ();
}
public function get Name () : String

属性值

类型:System.String

输入法的名称。

备注

只能在枚举 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

另请参见

参考

InputMethod 类

InputMethod 成员

Microsoft.WindowsCE.Forms 命名空间