IUIAutomationElement7::FindAllWithOptions メソッド (uiautomationclient.h)

指定した順序で一致するすべての要素を検索します。

構文

HRESULT FindAllWithOptions(
                 TreeScope                 scope,
  [in]           IUIAutomationCondition    *condition,
                 TreeTraversalOptions      traversalOptions,
  [in, optional] IUIAutomationElement      *root,
  [out]          IUIAutomationElementArray **found
);

パラメーター

scope

検索範囲を指定する値の組み合わせ。

[in] condition

一致する条件を表す条件へのポインター。

traversalOptions

ツリー ナビゲーション順序を指定する列挙値。

[in, optional] root

検索を開始する要素へのポインター。

[out] found

一致する要素の配列へのポインターを受け取ります。 一致する要素が見つからない場合は、空の配列を返します。

戻り値

成功した場合は S_OK を返し、それ以外の場合は HRESULT エラー コードを返します。

必要条件

要件 価値
サポートされる最小クライアント Windows 10 バージョン 1703 [デスクトップ アプリのみ]
サポートされる最小サーバー Windows Server 2016 [デスクトップ アプリのみ]
ターゲット プラットフォーム の ウィンドウズ
ヘッダー uiautomationclient.h (UIAutomation.h を含む)
DLL UIAutomationCore.dll

関連項目

IUIAutomationElement7