System\Windows\Automation\AutomationElement.cs (42)
41internal AutomationElement(SafeNodeHandle hnode, object[,] cachedValues, int cachedValuesIndex, UiaCoreApi.UiaCacheRequest request)
407_runtimeId = UiaCoreApi.UiaGetRuntimeId(_hnode);
430SafeNodeHandle hnode = UiaCoreApi.UiaNodeFromHandle(hwnd);
436UiaCoreApi.UiaCacheRequest cacheRequest = CacheRequest.CurrentUiaCacheRequest;
438UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(hnode, cacheRequest, UiaCoreApi.NormalizeState.None, null);
458return AutomationElement.Wrap(UiaCoreApi.UiaNodeFromProvider(localImpl));
512UiaCoreApi.UiaGetPropertyValue(_hnode, property.Id, out value);
589hpatternobj = UiaCoreApi.UiaGetPatternProvider(_hnode, pattern.Id);
654UiaCoreApi.IsErrorMarker(val, true/*throwException*/);
738UiaCoreApi.UiaCacheRequest cacheRequest = request.GetUiaCacheRequest();
741UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(_hnode, cacheRequest, UiaCoreApi.NormalizeState.None, null);
756UiaCoreApi.UiaCacheResponse[] responses = Find(scope, condition, CacheRequest.CurrentUiaCacheRequest, true, null);
779UiaCoreApi.UiaCacheRequest request = CacheRequest.CurrentUiaCacheRequest;
780UiaCoreApi.UiaCacheResponse[] responses = Find(scope, condition, request, false, null);
859UiaCoreApi.UiaSetFocus(_hnode);
948SafeNodeHandle hnode = UiaCoreApi.UiaGetRootNode();
950UiaCoreApi.UiaCacheRequest cacheRequest = CacheRequest.CurrentUiaCacheRequest;
953UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(hnode, cacheRequest, UiaCoreApi.NormalizeState.None, null);
1127UiaCoreApi.UiaCacheRequest cacheRequest;
1133UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaNavigate(_hnode, direction, condition, cacheRequest);
1141UiaCoreApi.UiaCacheRequest cacheRequest;
1148UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(_hnode, cacheRequest, UiaCoreApi.NormalizeState.Custom, condition);
1281private static AutomationElement DrillForPointOrFocus(bool atPoint, Point pt, UiaCoreApi.UiaCacheRequest cacheRequest)
1283UiaCoreApi.UiaCacheResponse response;
1285response = UiaCoreApi.UiaNodeFromPoint(pt.X, pt.Y, cacheRequest);
1287response = UiaCoreApi.UiaNodeFromFocus(cacheRequest);
1294private UiaCoreApi.UiaCacheResponse[] Find(TreeScope scope, Condition condition, UiaCoreApi.UiaCacheRequest request, bool findFirst, BackgroundWorker worker)
1307UiaCoreApi.UiaFindParams findParams = new UiaCoreApi.UiaFindParams();
1322UiaCoreApi.UiaCacheResponse[] retVal = UiaCoreApi.UiaFind(_hnode, findParams, condition, request);
1348private 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)
38return UiaCoreApi.UiaTextRangeRelease(handle);
110SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_Clone(_hTextRange);
123return UiaCoreApi.TextRange_Compare(_hTextRange, range._hTextRange);
142return UiaCoreApi.TextRange_CompareEndpoints(_hTextRange, endpoint, targetRange._hTextRange, targetEndpoint);
162UiaCoreApi.TextRange_ExpandToEnclosingUnit(_hTextRange, unit);
203SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_FindAttribute(_hTextRange, attribute.Id, value, backward);
223SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_FindText(_hTextRange, text, backward, ignoreCase);
243object obj = UiaCoreApi.TextRange_GetAttributeValue(_hTextRange, attribute.Id);
268return UiaCoreApi.TextRange_GetBoundingRectangles(_hTextRange);
280return AutomationElement.Wrap(UiaCoreApi.TextRange_GetEnclosingElement(_hTextRange));
291return UiaCoreApi.TextRange_GetText(_hTextRange, maxLength);
315return UiaCoreApi.TextRange_Move(_hTextRange, unit, count);
335return UiaCoreApi.TextRange_MoveEndpointByUnit(_hTextRange, endpoint, unit, count);
350UiaCoreApi.TextRange_MoveEndpointByRange(_hTextRange, endpoint, targetRange._hTextRange, targetEndpoint);
358UiaCoreApi.TextRange_Select(_hTextRange);
366UiaCoreApi.TextRange_AddToSelection(_hTextRange);
374UiaCoreApi.TextRange_RemoveFromSelection(_hTextRange);
384UiaCoreApi.TextRange_ScrollIntoView(_hTextRange, alignToTop);
406object[] rawChildren = UiaCoreApi.TextRange_GetChildren(_hTextRange);
410SafeNodeHandle hnode = UiaCoreApi.UiaHUiaNodeFromVariant(rawChildren[i]);