55 references to TreeScope
UIAutomationClient (55)
MS\Internal\Automation\CacheHelper.cs (2)
88bool askedForChildren = (cacheRequest.TreeScope & TreeScope.Children) != 0; 89bool askedForDescendants = (cacheRequest.TreeScope & TreeScope.Descendants) != 0;
MS\Internal\Automation\EventListener.cs (3)
25TreeScope scope, 68internal TreeScope TreeScope 97private TreeScope _scope; // fire events based on this scope
MS\Internal\Automation\EventListenerClientSide.cs (12)
113if ((_eventListener.TreeScope & TreeScope.Subtree) == TreeScope.Subtree && 128if ((_eventListener.TreeScope & TreeScope.Element) != 0 && Misc.Compare(el, elThis)) 136if (((_eventListener.TreeScope & TreeScope.Children) != 0 || (_eventListener.TreeScope & TreeScope.Descendants) != 0)) 144if (((_eventListener.TreeScope & TreeScope.Parent) != 0 || (_eventListener.TreeScope & TreeScope.Ancestors) != 0)) 152if ((_eventListener.TreeScope & TreeScope.Descendants) != 0 && IsChildOf(elThis, el)) 158if ((_eventListener.TreeScope & TreeScope.Ancestors) != 0 && IsChildOf(el, elThis)) 170if ((_eventListener.TreeScope & TreeScope.Subtree) == TreeScope.Subtree && 178if ( ( _eventListener.TreeScope & TreeScope.Element ) == 0 )
MS\Internal\Automation\UiaCoreApi.cs (6)
110internal TreeScope _scope; 121public TreeScope TreeScope { get { return _scope; } } 127TreeScope scope, 266private TreeScope _scope; 581internal static SafeEventHandle UiaAddEvent(SafeNodeHandle hnode, int eventId, UiaEventCallback callback, TreeScope scope, int[] properties, UiaCacheRequest request) 1271private static extern int RawUiaAddEvent(SafeNodeHandle hnode, int eventId, UiaEventCallback callback, TreeScope scope, [MarshalAs(UnmanagedType.LPArray)] int[] pProperties, int cProperties, UiaMiniCacheRequest pRequest, out SafeEventHandle hevent);
System\Windows\Automation\Automation.cs (15)
121TreeScope scope, 143if ( ( scope & TreeScope.Descendants ) == TreeScope.Descendants ) 151if ( ( scope & ( TreeScope.Ancestors | TreeScope.Element | TreeScope.Descendants ) ) == ( TreeScope.Ancestors | TreeScope.Element | TreeScope.Descendants ) ) 155else if ( ( scope & TreeScope.Element ) == TreeScope.Element ) 212TreeScope scope, // scope to listen to 261public static void AddStructureChangedEventHandler(AutomationElement element, TreeScope scope, StructureChangedEventHandler eventHandler) 298TreeScope.Subtree | TreeScope.Ancestors,
System\Windows\Automation\AutomationElement.cs (9)
746public AutomationElement FindFirst(TreeScope scope, Condition condition) 769public AutomationElementCollection FindAll(TreeScope scope, Condition condition) 1281private UiaCoreApi.UiaCacheResponse[] Find(TreeScope scope, Condition condition, UiaCoreApi.UiaCacheRequest request, bool findFirst, BackgroundWorker worker) 1288if ((scope & ~(TreeScope.Element | TreeScope.Children | TreeScope.Descendants)) != 0) 1299if ((scope & TreeScope.Descendants) != 0) 1301else if ((scope & TreeScope.Children) != 0) 1306if ((scope & TreeScope.Element) != 0)
System\Windows\Automation\CacheRequest.cs (8)
99_scope = TreeScope.Element; 111TreeScope scope, 292public TreeScope TreeScope 306if ((value & ~(TreeScope.Element | TreeScope.Children | TreeScope.Descendants)) != 0) 409_defaultUiaCacheRequest = new UiaCoreApi.UiaCacheRequest(Automation.ControlViewCondition, TreeScope.Element, new AutomationProperty[] { AutomationElement.RuntimeIdProperty }, Array.Empty<AutomationPattern>(), AutomationElementMode.Full); 498private TreeScope _scope;