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