UICuesEventArgs 類別

定義

提供 ChangeUICues 事件的資料。

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

範例

下列程式碼範例示範此類型的用法。 在此範例中,事件處理常式會報告事件的發生次數 ChangeUICues 。 此報告可協助您瞭解事件發生的時間,並可協助您進行偵錯。 若要報告多個事件或經常發生的事件,請考慮將 取代 ShowConsole.WriteLine 或將訊息附加至多行 TextBox

若要執行範例程式碼,請將它貼入包含繼承自 Control 之型別實例的專案,例如 ButtonComboBox 。 然後命名 實例 Control1 ,並確定事件處理常式與 事件相關聯 ChangeUICues

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

備註

指定 UICuesEventArgs 變更的使用者介面功能及其新值。

當使用者 ChangeUICues 介面因顯示或隱藏焦點指標或鍵盤提示而變更時,就會發生此事件。這通常是當使用者按下 TAB、ALT 或 F10 鍵時。

如需事件模型的相關資訊,請參閱 處理和引發事件

建構函式

UICuesEventArgs(UICues)

使用指定的 UICuesEventArgs 初始化 UICues 類別的新執行個體。

屬性

Changed

取得 UICues 值的位元組合。

ChangeFocus

取得值,表示焦點提示狀態是否已經變更。

ChangeKeyboard

取得值,表示鍵盤提示狀態是否已經變更。

ShowFocus

取得值,表示焦點矩形是否在變更後顯示。

ShowKeyboard

取得值,表示鍵盤提示是否在變更後加上底線。

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於

另請參閱