Edit

Share via


InputLanguage.Handle Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets the handle for the input language.

public IntPtr Handle { get; }

Property Value

IntPtr

An IntPtr that represents the handle of this input language.

Examples

The following code example gets the current input language. Then it calls Handle to get the handle and prints the results in a text box. The example requires that textBox1 has been instantiated.

public void MyHandle() {
   // Gets the current input language.
   InputLanguage myCurrentLanguage = InputLanguage.CurrentInputLanguage;

   // Gets a handle for the language  and prints the number.
   IntPtr myHandle = myCurrentLanguage.Handle;
   textBox1.Text = "The handle number is: " + myHandle.ToString();
}

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also