IUIAutomationTextPattern2::RangeFromAnnotation メソッド (uiautomationclient.h)

指定した注釈要素に関連付けられた注釈のターゲットであるテキストを含むテキスト範囲を取得します。

構文

HRESULT RangeFromAnnotation(
  [in]          IUIAutomationElement   *annotation,
  [out, retval] IUIAutomationTextRange **range
);

パラメーター

[in] annotation

種類: IUIAutomationElement*

ターゲット テキストを取得する注釈要素。 この要素は、ドキュメントの IUIAutomationTextPattern2 を実装する 要素の兄弟です。

[out, retval] range

種類: IUIAutomationTextRange**

注釈のターゲット テキストを含むテキスト範囲を受け取ります。

戻り値

種類: HRESULT

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

要件

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

こちらもご覧ください

IUIAutomationTextPattern2

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

テキスト ベースのコントロールの操作