System\Windows\Automation\AutomationElement.cs (42)
37internal AutomationElement(SafeNodeHandle hnode, object[,] cachedValues, int cachedValuesIndex, UiaCoreApi.UiaCacheRequest request)
403_runtimeId = UiaCoreApi.UiaGetRuntimeId(_hnode);
426SafeNodeHandle hnode = UiaCoreApi.UiaNodeFromHandle(hwnd);
432UiaCoreApi.UiaCacheRequest cacheRequest = CacheRequest.CurrentUiaCacheRequest;
434UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(hnode, cacheRequest, UiaCoreApi.NormalizeState.None, null);
454return AutomationElement.Wrap(UiaCoreApi.UiaNodeFromProvider(localImpl));
505UiaCoreApi.UiaGetPropertyValue(_hnode, property.Id, out value);
582hpatternobj = UiaCoreApi.UiaGetPatternProvider(_hnode, pattern.Id);
647UiaCoreApi.IsErrorMarker(val, true/*throwException*/);
731UiaCoreApi.UiaCacheRequest cacheRequest = request.GetUiaCacheRequest();
734UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(_hnode, cacheRequest, UiaCoreApi.NormalizeState.None, null);
749UiaCoreApi.UiaCacheResponse[] responses = Find(scope, condition, CacheRequest.CurrentUiaCacheRequest, true, null);
772UiaCoreApi.UiaCacheRequest request = CacheRequest.CurrentUiaCacheRequest;
773UiaCoreApi.UiaCacheResponse[] responses = Find(scope, condition, request, false, null);
852UiaCoreApi.UiaSetFocus(_hnode);
941SafeNodeHandle hnode = UiaCoreApi.UiaGetRootNode();
943UiaCoreApi.UiaCacheRequest cacheRequest = CacheRequest.CurrentUiaCacheRequest;
946UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(hnode, cacheRequest, UiaCoreApi.NormalizeState.None, null);
1114UiaCoreApi.UiaCacheRequest cacheRequest;
1120UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaNavigate(_hnode, direction, condition, cacheRequest);
1128UiaCoreApi.UiaCacheRequest cacheRequest;
1135UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(_hnode, cacheRequest, UiaCoreApi.NormalizeState.Custom, condition);
1268private static AutomationElement DrillForPointOrFocus(bool atPoint, Point pt, UiaCoreApi.UiaCacheRequest cacheRequest)
1270UiaCoreApi.UiaCacheResponse response;
1272response = UiaCoreApi.UiaNodeFromPoint(pt.X, pt.Y, cacheRequest);
1274response = UiaCoreApi.UiaNodeFromFocus(cacheRequest);
1281private UiaCoreApi.UiaCacheResponse[] Find(TreeScope scope, Condition condition, UiaCoreApi.UiaCacheRequest request, bool findFirst, BackgroundWorker worker)
1294UiaCoreApi.UiaFindParams findParams = new UiaCoreApi.UiaFindParams
1311UiaCoreApi.UiaCacheResponse[] retVal = UiaCoreApi.UiaFind(_hnode, findParams, condition, request);
1337private UiaCoreApi.UiaCacheRequest _request;
System\Windows\Automation\CacheRequest.cs (9)
115UiaCoreApi.UiaCacheRequest uiaCacheRequest)
175_uiaCacheRequest = new UiaCoreApi.UiaCacheRequest(_viewCondition, _scope, propertyArray, patternArray, _automationElementMode);
403internal static UiaCoreApi.UiaCacheRequest DefaultUiaCacheRequest
409_defaultUiaCacheRequest = new UiaCoreApi.UiaCacheRequest(Automation.ControlViewCondition, TreeScope.Element, new AutomationProperty[] { AutomationElement.RuntimeIdProperty }, Array.Empty<AutomationPattern>(), AutomationElementMode.Full);
425internal UiaCoreApi.UiaCacheRequest GetUiaCacheRequest()
433_uiaCacheRequest = new UiaCoreApi.UiaCacheRequest(_viewCondition, _scope, propertiesArray, patternsArray, _automationElementMode);
440internal static UiaCoreApi.UiaCacheRequest CurrentUiaCacheRequest
505private UiaCoreApi.UiaCacheRequest _uiaCacheRequest;
527internal static UiaCoreApi.UiaCacheRequest _defaultUiaCacheRequest;
System\Windows\Automation\ItemContainerPattern.cs (4)
97hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, startAfter.RawNode, property.Id, value);
99hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, startAfter.RawNode, 0, null);
104hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, new SafeNodeHandle(), property.Id, value);
106hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, new SafeNodeHandle(), 0, null);
System\Windows\Automation\Text\TextRange.cs (20)
34return UiaCoreApi.UiaTextRangeRelease(handle);
106SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_Clone(_hTextRange);
119return UiaCoreApi.TextRange_Compare(_hTextRange, range._hTextRange);
138return UiaCoreApi.TextRange_CompareEndpoints(_hTextRange, endpoint, targetRange._hTextRange, targetEndpoint);
158UiaCoreApi.TextRange_ExpandToEnclosingUnit(_hTextRange, unit);
199SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_FindAttribute(_hTextRange, attribute.Id, value, backward);
219SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_FindText(_hTextRange, text, backward, ignoreCase);
239object obj = UiaCoreApi.TextRange_GetAttributeValue(_hTextRange, attribute.Id);
264return UiaCoreApi.TextRange_GetBoundingRectangles(_hTextRange);
276return AutomationElement.Wrap(UiaCoreApi.TextRange_GetEnclosingElement(_hTextRange));
287return UiaCoreApi.TextRange_GetText(_hTextRange, maxLength);
311return UiaCoreApi.TextRange_Move(_hTextRange, unit, count);
331return UiaCoreApi.TextRange_MoveEndpointByUnit(_hTextRange, endpoint, unit, count);
346UiaCoreApi.TextRange_MoveEndpointByRange(_hTextRange, endpoint, targetRange._hTextRange, targetEndpoint);
354UiaCoreApi.TextRange_Select(_hTextRange);
362UiaCoreApi.TextRange_AddToSelection(_hTextRange);
370UiaCoreApi.TextRange_RemoveFromSelection(_hTextRange);
380UiaCoreApi.TextRange_ScrollIntoView(_hTextRange, alignToTop);
402object[] rawChildren = UiaCoreApi.TextRange_GetChildren(_hTextRange);
406SafeNodeHandle hnode = UiaCoreApi.UiaHUiaNodeFromVariant(rawChildren[i]);