System\Windows\Automation\AutomationElement.cs (42)
55internal AutomationElement(SafeNodeHandle hnode, object[,] cachedValues, int cachedValuesIndex, UiaCoreApi.UiaCacheRequest request)
411_runtimeId = UiaCoreApi.UiaGetRuntimeId(_hnode);
444SafeNodeHandle hnode = UiaCoreApi.UiaNodeFromHandle(hwnd);
450UiaCoreApi.UiaCacheRequest cacheRequest = CacheRequest.CurrentUiaCacheRequest;
452UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(hnode, cacheRequest, UiaCoreApi.NormalizeState.None, null);
472return AutomationElement.Wrap(UiaCoreApi.UiaNodeFromProvider(localImpl));
536UiaCoreApi.UiaGetPropertyValue(_hnode, property.Id, out value);
623hpatternobj = UiaCoreApi.UiaGetPatternProvider(_hnode, pattern.Id);
698UiaCoreApi.IsErrorMarker(val, true/*throwException*/);
792UiaCoreApi.UiaCacheRequest cacheRequest = request.GetUiaCacheRequest();
795UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(_hnode, cacheRequest, UiaCoreApi.NormalizeState.None, null);
810UiaCoreApi.UiaCacheResponse[] responses = Find(scope, condition, CacheRequest.CurrentUiaCacheRequest, true, null);
833UiaCoreApi.UiaCacheRequest request = CacheRequest.CurrentUiaCacheRequest;
834UiaCoreApi.UiaCacheResponse[] responses = Find(scope, condition, request, false, null);
928UiaCoreApi.UiaSetFocus(_hnode);
1032SafeNodeHandle hnode = UiaCoreApi.UiaGetRootNode();
1034UiaCoreApi.UiaCacheRequest cacheRequest = CacheRequest.CurrentUiaCacheRequest;
1037UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(hnode, cacheRequest, UiaCoreApi.NormalizeState.None, null);
1217UiaCoreApi.UiaCacheRequest cacheRequest;
1223UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaNavigate(_hnode, direction, condition, cacheRequest);
1231UiaCoreApi.UiaCacheRequest cacheRequest;
1238UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(_hnode, cacheRequest, UiaCoreApi.NormalizeState.Custom, condition);
1371private static AutomationElement DrillForPointOrFocus(bool atPoint, Point pt, UiaCoreApi.UiaCacheRequest cacheRequest)
1373UiaCoreApi.UiaCacheResponse response;
1375response = UiaCoreApi.UiaNodeFromPoint(pt.X, pt.Y, cacheRequest);
1377response = UiaCoreApi.UiaNodeFromFocus(cacheRequest);
1384private UiaCoreApi.UiaCacheResponse[] Find(TreeScope scope, Condition condition, UiaCoreApi.UiaCacheRequest request, bool findFirst, BackgroundWorker worker)
1397UiaCoreApi.UiaFindParams findParams = new UiaCoreApi.UiaFindParams();
1412UiaCoreApi.UiaCacheResponse[] retVal = UiaCoreApi.UiaFind(_hnode, findParams, condition, request);
1438private UiaCoreApi.UiaCacheRequest _request;
System\Windows\Automation\CacheRequest.cs (9)
125UiaCoreApi.UiaCacheRequest uiaCacheRequest)
185_uiaCacheRequest = new UiaCoreApi.UiaCacheRequest(_viewCondition, _scope, propertyArray, patternArray, _automationElementMode);
413internal static UiaCoreApi.UiaCacheRequest DefaultUiaCacheRequest
419_defaultUiaCacheRequest = new UiaCoreApi.UiaCacheRequest(Automation.ControlViewCondition, TreeScope.Element, new AutomationProperty[] { AutomationElement.RuntimeIdProperty }, new AutomationPattern[] { }, AutomationElementMode.Full);
435internal UiaCoreApi.UiaCacheRequest GetUiaCacheRequest()
443_uiaCacheRequest = new UiaCoreApi.UiaCacheRequest(_viewCondition, _scope, propertiesArray, patternsArray, _automationElementMode);
450static internal UiaCoreApi.UiaCacheRequest CurrentUiaCacheRequest
515UiaCoreApi.UiaCacheRequest _uiaCacheRequest;
537internal static UiaCoreApi.UiaCacheRequest _defaultUiaCacheRequest;
System\Windows\Automation\ItemContainerPattern.cs (4)
109hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, startAfter.RawNode, property.Id, value);
111hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, startAfter.RawNode, 0, null);
116hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, new SafeNodeHandle(), property.Id, value);
118hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, new SafeNodeHandle(), 0, null);
System\Windows\Automation\Text\TextRange.cs (20)
49return UiaCoreApi.UiaTextRangeRelease(handle);
121SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_Clone(_hTextRange);
134return UiaCoreApi.TextRange_Compare(_hTextRange, range._hTextRange);
153return UiaCoreApi.TextRange_CompareEndpoints(_hTextRange, endpoint, targetRange._hTextRange, targetEndpoint);
173UiaCoreApi.TextRange_ExpandToEnclosingUnit(_hTextRange, unit);
214SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_FindAttribute(_hTextRange, attribute.Id, value, backward);
234SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_FindText(_hTextRange, text, backward, ignoreCase);
254object obj = UiaCoreApi.TextRange_GetAttributeValue(_hTextRange, attribute.Id);
279return UiaCoreApi.TextRange_GetBoundingRectangles(_hTextRange);
291return AutomationElement.Wrap(UiaCoreApi.TextRange_GetEnclosingElement(_hTextRange));
302return UiaCoreApi.TextRange_GetText(_hTextRange, maxLength);
326return UiaCoreApi.TextRange_Move(_hTextRange, unit, count);
346return UiaCoreApi.TextRange_MoveEndpointByUnit(_hTextRange, endpoint, unit, count);
361UiaCoreApi.TextRange_MoveEndpointByRange(_hTextRange, endpoint, targetRange._hTextRange, targetEndpoint);
369UiaCoreApi.TextRange_Select(_hTextRange);
377UiaCoreApi.TextRange_AddToSelection(_hTextRange);
385UiaCoreApi.TextRange_RemoveFromSelection(_hTextRange);
395UiaCoreApi.TextRange_ScrollIntoView(_hTextRange, alignToTop);
417object[] rawChildren = UiaCoreApi.TextRange_GetChildren(_hTextRange);
421SafeNodeHandle hnode = UiaCoreApi.UiaHUiaNodeFromVariant(rawChildren[i]);