IUIAutomationLegacyIAccessiblePattern::GetCurrentSelection メソッド (uiautomationclient.h)

この要素の選択した子を識別する Microsoft Active Accessibility プロパティを取得します。

構文

HRESULT GetCurrentSelection(
  [out, retval] IUIAutomationElementArray **pvarSelectedChildren
);

パラメーター

[out, retval] pvarSelectedChildren

種類: IUIAutomationElementArray**

選択した子要素のコレクションへのポインターを受け取ります。

戻り値

型: HRESULT

このメソッドは、成功すると S_OK を返します。 そうでない場合は、HRESULT エラー コードを返します。

要件

要件
サポートされている最小のクライアント Windows 7 [デスクトップ アプリのみ]
サポートされている最小のサーバー Windows Server 2008 [デスクトップ アプリのみ]
対象プラットフォーム Windows
ヘッダー uiautomationclient.h (UIAutomation.h を含む)

こちらもご覧ください

IUIAutomationLegacyIAccessiblePattern