C# Class InternalHelper.Tests.AutomationEvents

Object called from the test cases to test out AutomationEvents
Inheritance: EventObject
Afficher le fichier Open project: geeksree/cSharpGeeks Class Usage Examples

Méthodes publiques

Méthode Description
AddEventHandler ( AutomationEvent eventId, string eventName, AutomationElement element, TreeScope treeScope ) : void

Method that registers the event handler OnEvent()

AutomationEvents ( ) : System

OnEvent ( object element, AutomationEventArgs argument ) : void

Method registered by AddEventHandler() as an event handler

RemoveEventHandler ( AutomationEvent eventId, AutomationElement element ) : void

WasEventFired ( AutomationElement element, AutomationEvent automationEvent ) : EventFired

Method determines if the desired event was fired

Method Details

AddEventHandler() public méthode

Method that registers the event handler OnEvent()
public AddEventHandler ( AutomationEvent eventId, string eventName, AutomationElement element, TreeScope treeScope ) : void
eventId System.Windows.Automation.AutomationEvent
eventName string
element System.Windows.Automation.AutomationElement
treeScope TreeScope
Résultat void

AutomationEvents() public méthode

public AutomationEvents ( ) : System
Résultat System

OnEvent() public méthode

Method registered by AddEventHandler() as an event handler
public OnEvent ( object element, AutomationEventArgs argument ) : void
element object
argument System.Windows.Automation.AutomationEventArgs
Résultat void

RemoveEventHandler() public méthode

public RemoveEventHandler ( AutomationEvent eventId, AutomationElement element ) : void
eventId System.Windows.Automation.AutomationEvent
element System.Windows.Automation.AutomationElement
Résultat void

WasEventFired() public méthode

Method determines if the desired event was fired
public WasEventFired ( AutomationElement element, AutomationEvent automationEvent ) : EventFired
element System.Windows.Automation.AutomationElement
automationEvent System.Windows.Automation.AutomationEvent
Résultat EventFired