C# Class InternalHelper.Tests.StructureChangedEvents

Object called from the test cases to test out AutomationEvents
Inheritance: EventObject
显示文件 Open project: geeksree/cSharpGeeks Class Usage Examples

Public Methods

Method Description
AddEventHandler ( AutomationElement element, TreeScope treeScope ) : void

Method that registers the event handler OnEvent()

OnEvent ( object element, StructureChangedEventArgs argument ) : void

Method registered by AddEventHandler() as an event handler

RemoveEventHandler ( AutomationElement element ) : void

StructureChangedEvents ( ) : System

WasEventFired ( AutomationElement element, StructureChangeType structureChangeType ) : EventFired

Method determines if the desired event was fired

Method Details

AddEventHandler() public method

Method that registers the event handler OnEvent()
public AddEventHandler ( AutomationElement element, TreeScope treeScope ) : void
element System.Windows.Automation.AutomationElement
treeScope TreeScope
return void

OnEvent() public method

Method registered by AddEventHandler() as an event handler
public OnEvent ( object element, StructureChangedEventArgs argument ) : void
element object
argument System.Windows.Automation.StructureChangedEventArgs
return void

RemoveEventHandler() public method

public RemoveEventHandler ( AutomationElement element ) : void
element System.Windows.Automation.AutomationElement
return void

StructureChangedEvents() public method

public StructureChangedEvents ( ) : System
return System

WasEventFired() public method

Method determines if the desired event was fired
public WasEventFired ( AutomationElement element, StructureChangeType structureChangeType ) : EventFired
element System.Windows.Automation.AutomationElement
structureChangeType StructureChangeType
return EventFired