ITextRangeProvider::MoveEndpointByRange メソッド (uiautomationcore.h)

現在のテキスト範囲の 1 つのエンドポイントを、2 番目のテキスト範囲の指定されたエンドポイントに移動します。

構文

HRESULT MoveEndpointByRange(
       TextPatternRangeEndpoint endpoint,
  [in] ITextRangeProvider       *targetRange,
       TextPatternRangeEndpoint targetEndpoint
);

パラメーター

endpoint

[in] targetRange

種類: ITextRangeProvider*

現在のテキスト範囲と同じテキスト プロバイダーからの 2 番目のテキスト範囲。

targetEndpoint

戻り値

型: HRESULT

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

注釈

移動するエンドポイントが同じテキスト範囲の他のエンドポイントと交差する場合、その他のエンドポイントも移動され、結果として低い (空の) 範囲になり、エンドポイントの正しい順序が保証されます (つまり、開始は常に終了以下です)。

要件

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

関連項目

概念

ITextProvider

ITextRangeProvider

リファレンス

UI オートメーション プロバイダーの概要