InputLanguage.Handle 속성

정의

입력 언어에 대한 핸들을 가져옵니다.

public:
 property IntPtr Handle { IntPtr get(); };
public IntPtr Handle { get; }
member this.Handle : nativeint
Public ReadOnly Property Handle As IntPtr

속성 값

IntPtr

nativeint

이 입력 언어의 핸들을 나타내는 IntPtr입니다.

예제

다음 코드 예제에서는 현재 입력된 언어를 가져옵니다. 호출 후 Handle 텍스트 상자에 핸들 및 출력 결과 가져올 수 있습니다. 이 예제에서는 textBox1 을 인스턴스화해야 합니다.

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 = String::Format( "The handle number is: {0}", myHandle );
   }
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();
}
Public Sub MyHandle()
   ' Gets the current input language.
   Dim myCurrentLanguage As InputLanguage = InputLanguage.CurrentInputLanguage
       
   ' Gets a handle for the language  and prints the number.
   Dim myHandle As IntPtr = myCurrentLanguage.Handle
   textBox1.Text = "The handle number is: " & myHandle.ToString()
End Sub

적용 대상

추가 정보