UICuesEventArgs Sınıf

Tanım

ChangeUICues olayı için veriler sağlar.

public ref class UICuesEventArgs : EventArgs
public class UICuesEventArgs : EventArgs
type UICuesEventArgs = class
    inherit EventArgs
Public Class UICuesEventArgs
Inherits EventArgs
Devralma
UICuesEventArgs

Örnekler

Aşağıdaki kod örneği bu türün kullanımını gösterir. Örnekte, olay işleyicisi olayın oluşumunu ChangeUICues bildirir. Bu rapor, olayın ne zaman gerçekleştiğini öğrenmenize yardımcı olur ve hata ayıklamada size yardımcı olabilir. Birden çok olayı veya sık gerçekleşen olayları raporlamak için, iletisini ile Show değiştirmeyi Console.WriteLine veya çok satırlı TextBoxbir iletiye eklemeyi göz önünde bulundurun.

Örnek kodu çalıştırmak için, veya gibi öğesinden Controldevralan bir türün örneğini içeren bir ButtonComboBoxprojeye yapıştırın. Ardından örneği Control1 adlandırın ve olay işleyicisinin olayla ilişkilendirildiğinden ChangeUICues emin olun.

private void Control1_ChangeUICues(Object sender, UICuesEventArgs e) {

System.Text.StringBuilder messageBoxCS = new System.Text.StringBuilder();
messageBoxCS.AppendFormat("{0} = {1}", "ShowFocus", e.ShowFocus );
messageBoxCS.AppendLine();
messageBoxCS.AppendFormat("{0} = {1}", "ShowKeyboard", e.ShowKeyboard );
messageBoxCS.AppendLine();
messageBoxCS.AppendFormat("{0} = {1}", "ChangeFocus", e.ChangeFocus );
messageBoxCS.AppendLine();
messageBoxCS.AppendFormat("{0} = {1}", "ChangeKeyboard", e.ChangeKeyboard );
messageBoxCS.AppendLine();
messageBoxCS.AppendFormat("{0} = {1}", "Changed", e.Changed );
messageBoxCS.AppendLine();
MessageBox.Show(messageBoxCS.ToString(), "ChangeUICues Event" );
}
Private Sub Control1_ChangeUICues(sender as Object, e as UICuesEventArgs) _ 
     Handles Control1.ChangeUICues

    Dim messageBoxVB as New System.Text.StringBuilder()
    messageBoxVB.AppendFormat("{0} = {1}", "ShowFocus", e.ShowFocus)
    messageBoxVB.AppendLine()
    messageBoxVB.AppendFormat("{0} = {1}", "ShowKeyboard", e.ShowKeyboard)
    messageBoxVB.AppendLine()
    messageBoxVB.AppendFormat("{0} = {1}", "ChangeFocus", e.ChangeFocus)
    messageBoxVB.AppendLine()
    messageBoxVB.AppendFormat("{0} = {1}", "ChangeKeyboard", e.ChangeKeyboard)
    messageBoxVB.AppendLine()
    messageBoxVB.AppendFormat("{0} = {1}", "Changed", e.Changed)
    messageBoxVB.AppendLine()
    MessageBox.Show(messageBoxVB.ToString(),"ChangeUICues Event")

End Sub

Açıklamalar

A UICuesEventArgs , hangi kullanıcı arabirimi özelliğinin değiştiğini ve yeni değerini belirtir.

Olay, ChangeUICues kullanıcı arabirimi odak göstergelerini veya klavye ipuçlarını göstererek veya gizleyerek değiştiğinde gerçekleşir. Bu genellikle kullanıcı SEKME, ALT veya F10 tuşlarına bastığında yapılır.

Olay modeli hakkında bilgi için bkz. Olayları İşleme ve Oluşturma.

Oluşturucular

Name Description
UICuesEventArgs(UICues)

belirtilen UICuesEventArgsile sınıfının yeni bir örneğini UICues başlatır.

Özellikler

Name Description
Changed

Değerlerin bit düzeyinde birleşimini UICues alır.

ChangeFocus

Odak ipuçlarının durumunun değişip değişmediğini gösteren bir değer alır.

ChangeKeyboard

Klavye ipuçlarının durumunun değişip değişmediğini gösteren bir değer alır.

ShowFocus

Değişiklik sonrasında odak dikdörtgenlerinin gösterilip gösterilmediğini gösteren bir değer alır.

ShowKeyboard

Değişiklik sonrasında klavye ipuçlarının altı çizili olup olmadığını gösteren bir değer alır.

Yöntemler

Name Description
Equals(Object)

Belirtilen nesnenin geçerli nesneye eşit olup olmadığını belirler.

(Devralındığı yer: Object)
GetHashCode()

Varsayılan karma işlevi işlevi görür.

(Devralındığı yer: Object)
GetType()

Geçerli örneğin Type alır.

(Devralındığı yer: Object)
MemberwiseClone()

Geçerli Objectbasit bir kopyasını oluşturur.

(Devralındığı yer: Object)
ToString()

Geçerli nesneyi temsil eden bir dize döndürür.

(Devralındığı yer: Object)

Şunlara uygulanır

Ayrıca bkz.