IUIAutomationElement7::FindAllWithOptions method

Find all matching elements in the specified order.

Syntax

HRESULT FindAllWithOptions(
  TreeScope scope                       ,
  IUIAutomationCondition                *condition,
  TreeTraversalOptions traversalOptions ,
  IUIAutomationElement                  *root,
  IUIAutomationElementArray             **found
);

Parameters

arg1

A combination of values specifying the scope of the search.

condition

A pointer to a condition that represents the criteria to match.

arg3

Enumeration value specifying the tree navigation order.

root

A pointer to the element with which to begin the search.

found

Receives a pointer to an array of matching elements. Returns an empty array if no matching element is found.

Return Value

Returns S_OK if successful, otherwise an HRESULT error code.

Requirements

   
Minimum supported client Windows 10, version 1703 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header uiautomationclient.h (include UIAutomation.h)
DLL UIAutomationCore.dll

See Also

IUIAutomationElement7