System\Windows\Automation\AutomationElement.cs (42)
38internal AutomationElement(SafeNodeHandle hnode, object[,] cachedValues, int cachedValuesIndex, UiaCoreApi.UiaCacheRequest request)
404_runtimeId = UiaCoreApi.UiaGetRuntimeId(_hnode);
427SafeNodeHandle hnode = UiaCoreApi.UiaNodeFromHandle(hwnd);
433UiaCoreApi.UiaCacheRequest cacheRequest = CacheRequest.CurrentUiaCacheRequest;
435UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(hnode, cacheRequest, UiaCoreApi.NormalizeState.None, null);
455return AutomationElement.Wrap(UiaCoreApi.UiaNodeFromProvider(localImpl));
506UiaCoreApi.UiaGetPropertyValue(_hnode, property.Id, out value);
583hpatternobj = UiaCoreApi.UiaGetPatternProvider(_hnode, pattern.Id);
648UiaCoreApi.IsErrorMarker(val, true/*throwException*/);
732UiaCoreApi.UiaCacheRequest cacheRequest = request.GetUiaCacheRequest();
735UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(_hnode, cacheRequest, UiaCoreApi.NormalizeState.None, null);
750UiaCoreApi.UiaCacheResponse[] responses = Find(scope, condition, CacheRequest.CurrentUiaCacheRequest, true, null);
773UiaCoreApi.UiaCacheRequest request = CacheRequest.CurrentUiaCacheRequest;
774UiaCoreApi.UiaCacheResponse[] responses = Find(scope, condition, request, false, null);
853UiaCoreApi.UiaSetFocus(_hnode);
942SafeNodeHandle hnode = UiaCoreApi.UiaGetRootNode();
944UiaCoreApi.UiaCacheRequest cacheRequest = CacheRequest.CurrentUiaCacheRequest;
947UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(hnode, cacheRequest, UiaCoreApi.NormalizeState.None, null);
1115UiaCoreApi.UiaCacheRequest cacheRequest;
1121UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaNavigate(_hnode, direction, condition, cacheRequest);
1129UiaCoreApi.UiaCacheRequest cacheRequest;
1136UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(_hnode, cacheRequest, UiaCoreApi.NormalizeState.Custom, condition);
1269private static AutomationElement DrillForPointOrFocus(bool atPoint, Point pt, UiaCoreApi.UiaCacheRequest cacheRequest)
1271UiaCoreApi.UiaCacheResponse response;
1273response = UiaCoreApi.UiaNodeFromPoint(pt.X, pt.Y, cacheRequest);
1275response = UiaCoreApi.UiaNodeFromFocus(cacheRequest);
1282private UiaCoreApi.UiaCacheResponse[] Find(TreeScope scope, Condition condition, UiaCoreApi.UiaCacheRequest request, bool findFirst, BackgroundWorker worker)
1295UiaCoreApi.UiaFindParams findParams = new UiaCoreApi.UiaFindParams
1312UiaCoreApi.UiaCacheResponse[] retVal = UiaCoreApi.UiaFind(_hnode, findParams, condition, request);
1338private UiaCoreApi.UiaCacheRequest _request;
System\Windows\Automation\CacheRequest.cs (9)
116UiaCoreApi.UiaCacheRequest uiaCacheRequest)
176_uiaCacheRequest = new UiaCoreApi.UiaCacheRequest(_viewCondition, _scope, propertyArray, patternArray, _automationElementMode);
404internal static UiaCoreApi.UiaCacheRequest DefaultUiaCacheRequest
410_defaultUiaCacheRequest = new UiaCoreApi.UiaCacheRequest(Automation.ControlViewCondition, TreeScope.Element, new AutomationProperty[] { AutomationElement.RuntimeIdProperty }, new AutomationPattern[] { }, AutomationElementMode.Full);
426internal UiaCoreApi.UiaCacheRequest GetUiaCacheRequest()
434_uiaCacheRequest = new UiaCoreApi.UiaCacheRequest(_viewCondition, _scope, propertiesArray, patternsArray, _automationElementMode);
441static internal UiaCoreApi.UiaCacheRequest CurrentUiaCacheRequest
506UiaCoreApi.UiaCacheRequest _uiaCacheRequest;
528internal static UiaCoreApi.UiaCacheRequest _defaultUiaCacheRequest;
System\Windows\Automation\ItemContainerPattern.cs (4)
98hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, startAfter.RawNode, property.Id, value);
100hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, startAfter.RawNode, 0, null);
105hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, new SafeNodeHandle(), property.Id, value);
107hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, new SafeNodeHandle(), 0, null);
System\Windows\Automation\Text\TextRange.cs (20)
35return UiaCoreApi.UiaTextRangeRelease(handle);
107SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_Clone(_hTextRange);
120return UiaCoreApi.TextRange_Compare(_hTextRange, range._hTextRange);
139return UiaCoreApi.TextRange_CompareEndpoints(_hTextRange, endpoint, targetRange._hTextRange, targetEndpoint);
159UiaCoreApi.TextRange_ExpandToEnclosingUnit(_hTextRange, unit);
200SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_FindAttribute(_hTextRange, attribute.Id, value, backward);
220SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_FindText(_hTextRange, text, backward, ignoreCase);
240object obj = UiaCoreApi.TextRange_GetAttributeValue(_hTextRange, attribute.Id);
265return UiaCoreApi.TextRange_GetBoundingRectangles(_hTextRange);
277return AutomationElement.Wrap(UiaCoreApi.TextRange_GetEnclosingElement(_hTextRange));
288return UiaCoreApi.TextRange_GetText(_hTextRange, maxLength);
312return UiaCoreApi.TextRange_Move(_hTextRange, unit, count);
332return UiaCoreApi.TextRange_MoveEndpointByUnit(_hTextRange, endpoint, unit, count);
347UiaCoreApi.TextRange_MoveEndpointByRange(_hTextRange, endpoint, targetRange._hTextRange, targetEndpoint);
355UiaCoreApi.TextRange_Select(_hTextRange);
363UiaCoreApi.TextRange_AddToSelection(_hTextRange);
371UiaCoreApi.TextRange_RemoveFromSelection(_hTextRange);
381UiaCoreApi.TextRange_ScrollIntoView(_hTextRange, alignToTop);
403object[] rawChildren = UiaCoreApi.TextRange_GetChildren(_hTextRange);
407SafeNodeHandle hnode = UiaCoreApi.UiaHUiaNodeFromVariant(rawChildren[i]);