InputLanguage.Handle Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Giriş dilinin tutamacını alır.
public:
property IntPtr Handle { IntPtr get(); };
public IntPtr Handle { get; }
member this.Handle : nativeint
Public ReadOnly Property Handle As IntPtr
Özellik Değeri
-
IntPtr
nativeint
IntPtr Bu giriş dilinin tutamacını temsil eden bir.
Örnekler
Aşağıdaki kod örneği geçerli giriş dilini alır. Ardından tutamacı almak için öğesini çağırır Handle ve sonuçları bir metin kutusuna yazdırır. Örnek, örneğin örneğinin başlatılmasını gerektirir 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