UICuesEventArgs UICuesEventArgs UICuesEventArgs UICuesEventArgs Class


ChangeUICues 事件提供数据。Provides data for the ChangeUICues event.

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


下面的代码示例演示如何使用此类型。The following code example demonstrates the use of this type. 在此示例中, 事件处理程序报告ChangeUICues事件的发生。In the example, an event handler reports on the occurrence of the ChangeUICues event. 此报表可帮助你了解何时发生事件, 并可帮助你进行调试。This report helps you to learn when the event occurs and can assist you in debugging. 若要报告多个事件或频繁发生的事件, 请考虑ShowConsole.WriteLine消息替换为多行或将TextBox其追加到多行。To report on multiple events or on events that occur frequently, consider replacing Show with Console.WriteLine or appending the message to a multiline TextBox.

若要运行示例代码, 请将其粘贴到一个项目中, 该项目包含从Control继承的类型的实例, 如ComboBox Button或。To run the example code, paste it into a project that contains an instance of a type that inherits from Control, such as a Button or ComboBox. 然后命名该实例Control1 , 并确保事件处理程序ChangeUICues与事件相关联。Then name the instance Control1 and ensure that the event handler is associated with the ChangeUICues event.

private void Control1_ChangeUICues(Object sender, UICuesEventArgs e) {

System.Text.StringBuilder messageBoxCS = new System.Text.StringBuilder();
messageBoxCS.AppendFormat("{0} = {1}", "ShowFocus", e.ShowFocus );
messageBoxCS.AppendFormat("{0} = {1}", "ShowKeyboard", e.ShowKeyboard );
messageBoxCS.AppendFormat("{0} = {1}", "ChangeFocus", e.ChangeFocus );
messageBoxCS.AppendFormat("{0} = {1}", "ChangeKeyboard", e.ChangeKeyboard );
messageBoxCS.AppendFormat("{0} = {1}", "Changed", e.Changed );
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.AppendFormat("{0} = {1}", "ShowKeyboard", e.ShowKeyboard)
    messageBoxVB.AppendFormat("{0} = {1}", "ChangeFocus", e.ChangeFocus)
    messageBoxVB.AppendFormat("{0} = {1}", "ChangeKeyboard", e.ChangeKeyboard)
    messageBoxVB.AppendFormat("{0} = {1}", "Changed", e.Changed)
    MessageBox.Show(messageBoxVB.ToString(),"ChangeUICues Event")

End Sub


UICuesEventArgs指定更改的用户界面功能及其新值。A UICuesEventArgs specifies which user interface feature changed and its new value.

用户ChangeUICues界面通过显示或隐藏焦点指示器或键盘提示发生更改时发生此事件。这通常是用户按 TAB、ALT 或 F10 键时。The ChangeUICues event occurs when the user interface changes by showing or hiding focus indicators or keyboard cues. This is usually when the user presses the TAB, ALT, or F10 keys.

有关事件模型的信息, 请参阅处理和引发事件For information about the event model, see Handling and Raising Events.


UICuesEventArgs(UICues) UICuesEventArgs(UICues) UICuesEventArgs(UICues) UICuesEventArgs(UICues)

使用指定的 UICuesEventArgs 初始化 UICues 类的新实例。Initializes a new instance of the UICuesEventArgs class with the specified UICues.


Changed Changed Changed Changed

获取 UICues 值的按位组合。Gets the bitwise combination of the UICues values.

ChangeFocus ChangeFocus ChangeFocus ChangeFocus

获取一个值,用以指示焦点提示的状态是否已发生更改。Gets a value indicating whether the state of the focus cues has changed.

ChangeKeyboard ChangeKeyboard ChangeKeyboard ChangeKeyboard

获取一个值,用以指示键盘提示的状态是否已发生更改。Gets a value indicating whether the state of the keyboard cues has changed.

ShowFocus ShowFocus ShowFocus ShowFocus

获取一个值,用以指示是否在更改后显示聚焦框。Gets a value indicating whether focus rectangles are shown after the change.

ShowKeyboard ShowKeyboard ShowKeyboard ShowKeyboard

获取一个值,用以指示是否在更改后给键盘提示加下划线。Gets a value indicating whether keyboard cues are underlined after the change.


Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)