IUIAutomationTextRange3::GetAttributeValues メソッド (uiautomationclient.h)

1 回のクロスプロセス呼び出しで、テキスト範囲に対して要求されたすべてのテキスト属性値を返します。 これは GetAttributeValue を呼び出すのと同じですが、1 つではなく複数の値を取得できる点が除きます。

構文

HRESULT GetAttributeValues(
  [in]          const TEXTATTRIBUTEID *attributeIds,
  [in]          int                   attributeIdCount,
  [out, retval] SAFEARRAY             **attributeValues
);

パラメーター

[in] attributeIds

テキスト属性識別子の一覧。

[in] attributeIdCount

attributeIds リスト内のテキスト属性識別子の数。

[out, retval] attributeValues

テキスト範囲の対応するテキスト属性に対する値を含む VARIANTSAFEARRAY

戻り値

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

解説

GetAttributeValues は、 呼び出しで指定されたテキスト属性のみを取得します。

要件

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

関連項目

IUIAutomationTextRange3

UI オートメーションによるテキスト コンテンツのサポート