Version

QueryDisplayRoleUI Event

Event invoked when a new control is encountered to determine if the role selection ui may be displayed for that control.
Syntax
'Declaration
 
Public Event QueryDisplayRoleUI As QueryDisplayRoleUIEventHandler
public event QueryDisplayRoleUIEventHandler QueryDisplayRoleUI
Event Data

The event handler receives an argument of type QueryDisplayRoleUIEventArgs containing data related to this event. The following QueryDisplayRoleUIEventArgs properties provide information specific to this event.

PropertyDescription
CanDisplaySelectionUI Returns or sets whether the selection ui may be displayed for the specified ComponentRole.
ComponentRole Returns the ComponentRole associated with the Control for which the event is being fired.
Control Returns the control for which the ui role selection will be displayed.
FilterState Returns or sets an enumeration indicating the current filtered state of the component role.
Remarks

The event is only invoked when the Enabled is set to true.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also