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;
}
}
}