AtspiUiaSource.AutomationSource.AddAutomationEventHandler C# (CSharp) Method

AddAutomationEventHandler() public method

public AddAutomationEventHandler ( AutomationEvent eventId, IElement element, TreeScope scope, AutomationEventHandler eventHandler ) : void
eventId System.Windows.Automation.AutomationEvent
element IElement
scope TreeScope
eventHandler AutomationEventHandler
return void
		public void AddAutomationEventHandler (AutomationEvent eventId,
		                                       IElement element,
		                                       TreeScope scope,
		                                       AutomationEventHandler eventHandler)
		{
			AutomationEventHandlerData data = new AutomationEventHandlerData (
				eventId, element, scope, eventHandler);
			automationEventHandlers.Add (data);
		}