AtspiUiaSource.AutomationSource.RaiseStructureChangedEvent C# (CSharp) Method

RaiseStructureChangedEvent() static private method

static private RaiseStructureChangedEvent ( IElement element, StructureChangeType type ) : void
element IElement
type StructureChangeType
return void
		internal static void RaiseStructureChangedEvent (IElement element, StructureChangeType type)
		{
			StructureChangedEventArgs e;
			int [] runtimeId = (element != null
				? element.RuntimeId
				: new int [0]);
			e = new StructureChangedEventArgs (type, runtimeId);
			foreach (StructureChangedEventHandlerData handler in structureEventHandlers) {
				if (IsElementInScope (element, handler.Element, handler.Scope)) {
					handler.EventHandler (SourceManager.GetOrCreateAutomationElement (element),
						e);
					break;
				}
			}
		}