Share via


InputMethod Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Provides the name and class ID for a member of the InputPanel.InputMethodCollection class for a Pocket PC. This class cannot be inherited.

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

Syntax

'Declaration
Public NotInheritable Class InputMethod
'Usage
Dim instance As InputMethod
public sealed class InputMethod
public ref class InputMethod sealed
[<SealedAttribute>]
type InputMethod =  class end

Remarks

You can only access this class from an InputPanel.InputMethodCollection.

Topic Location
How to: Set Smartphone Input Modes .NET Compact Framework
How to: Set Smartphone Input Modes .NET Compact Framework
How to: Set Smartphone Input Modes .NET Compact Framework

Examples

The following code example populates a list box with the available input methods. This code example is part of a larger example provided for the InputPanel.InputMethodCollection class.

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);
}

Inheritance Hierarchy

System.Object
  Microsoft.WindowsCE.Forms.InputMethod

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Compact Framework

Supported in: 3.5, 2.0

See Also

Reference

InputMethod Members

Microsoft.WindowsCE.Forms Namespace