55 references to TreeScope
UIAutomationClient (55)
MS\Internal\Automation\CacheHelper.cs (2)
89
bool askedForChildren = (cacheRequest.TreeScope &
TreeScope
.Children) != 0;
90
bool askedForDescendants = (cacheRequest.TreeScope &
TreeScope
.Descendants) != 0;
MS\Internal\Automation\EventListener.cs (3)
26
TreeScope
scope,
69
internal
TreeScope
TreeScope
98
private
TreeScope
_scope; // fire events based on this scope
MS\Internal\Automation\EventListenerClientSide.cs (12)
114
if ((_eventListener.TreeScope &
TreeScope
.Subtree) ==
TreeScope
.Subtree &&
129
if ((_eventListener.TreeScope &
TreeScope
.Element) != 0 && Misc.Compare(el, elThis))
137
if (((_eventListener.TreeScope &
TreeScope
.Children) != 0 || (_eventListener.TreeScope &
TreeScope
.Descendants) != 0))
145
if (((_eventListener.TreeScope &
TreeScope
.Parent) != 0 || (_eventListener.TreeScope &
TreeScope
.Ancestors) != 0))
153
if ((_eventListener.TreeScope &
TreeScope
.Descendants) != 0 && IsChildOf(elThis, el))
159
if ((_eventListener.TreeScope &
TreeScope
.Ancestors) != 0 && IsChildOf(el, elThis))
171
if ((_eventListener.TreeScope &
TreeScope
.Subtree) ==
TreeScope
.Subtree &&
179
if ( ( _eventListener.TreeScope &
TreeScope
.Element ) == 0 )
MS\Internal\Automation\UiaCoreApi.cs (6)
111
internal
TreeScope
_scope;
122
public
TreeScope
TreeScope { get { return _scope; } }
128
TreeScope
scope,
267
private
TreeScope
_scope;
582
internal static SafeEventHandle UiaAddEvent(SafeNodeHandle hnode, int eventId, UiaEventCallback callback,
TreeScope
scope, int[] properties, UiaCacheRequest request)
1272
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)
122
TreeScope
scope,
144
if ( ( scope &
TreeScope
.Descendants ) ==
TreeScope
.Descendants )
152
if ( ( scope & (
TreeScope
.Ancestors |
TreeScope
.Element |
TreeScope
.Descendants ) ) == (
TreeScope
.Ancestors |
TreeScope
.Element |
TreeScope
.Descendants ) )
156
else if ( ( scope &
TreeScope
.Element ) ==
TreeScope
.Element )
213
TreeScope
scope, // scope to listen to
262
public static void AddStructureChangedEventHandler(AutomationElement element,
TreeScope
scope, StructureChangedEventHandler eventHandler)
299
TreeScope
.Subtree |
TreeScope
.Ancestors,
System\Windows\Automation\AutomationElement.cs (9)
747
public AutomationElement FindFirst(
TreeScope
scope, Condition condition)
770
public AutomationElementCollection FindAll(
TreeScope
scope, Condition condition)
1282
private UiaCoreApi.UiaCacheResponse[] Find(
TreeScope
scope, Condition condition, UiaCoreApi.UiaCacheRequest request, bool findFirst, BackgroundWorker worker)
1289
if ((scope & ~(
TreeScope
.Element |
TreeScope
.Children |
TreeScope
.Descendants)) != 0)
1300
if ((scope &
TreeScope
.Descendants) != 0)
1302
else if ((scope &
TreeScope
.Children) != 0)
1307
if ((scope &
TreeScope
.Element) != 0)
System\Windows\Automation\CacheRequest.cs (8)
100
_scope =
TreeScope
.Element;
112
TreeScope
scope,
293
public
TreeScope
TreeScope
307
if ((value & ~(
TreeScope
.Element |
TreeScope
.Children |
TreeScope
.Descendants)) != 0)
410
_defaultUiaCacheRequest = new UiaCoreApi.UiaCacheRequest(Automation.ControlViewCondition,
TreeScope
.Element, new AutomationProperty[] { AutomationElement.RuntimeIdProperty }, new AutomationPattern[] { }, AutomationElementMode.Full);
499
TreeScope
_scope;