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或将消息附加到多行TextBoxTo 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,如ButtonComboBoxTo 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事件发生时通过显示或隐藏焦点指示器或给键盘提示更改用户界面。这通常是当用户按选项卡、 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)