ITextDocument2::Range2 メソッド (tom.h)

文書の作業中のストーリーの新しいテキスト範囲を取得します。

構文

HRESULT Range2(
  [in]          long        cpActive,
  [in]          long        cpAnchor,
  [out, retval] ITextRange2 **ppRange
);

パラメーター

[in] cpActive

型: long

新しいテキスト範囲のアクティブな末尾。 既定値は 0 です。つまり、物語の始まりです。

[in] cpAnchor

型: long

新しいテキスト範囲のアンカーの末尾。 既定値は 0 です。

[out, retval] ppRange

型: ITextRange2**

新しいテキスト範囲。

戻り値

種類: HRESULT

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

要件

要件
サポートされている最小のクライアント Windows 8 [デスクトップ アプリのみ]
サポートされている最小のサーバー Windows Server 2012 [デスクトップ アプリのみ]
対象プラットフォーム Windows
ヘッダー tom.h
[DLL] Msftedit.dll

こちらもご覧ください

ITextDocument2