Share via


ITextRange::GetStoryType メソッド (tom.h)

範囲のストーリーの種類を取得します。

構文

HRESULT GetStoryType(
  long *pValue
);

パラメーター

pValue

型: long*

範囲のストーリーの種類。 pValue 値には、次のいずれかの値を指定できます。

ストーリーの種類 ストーリーの種類
tomUnknownStory 0 tomEvenPagesHeaderStory 6
tomMainTextStory 1 tomPrimaryHeaderStory 7
tomFootnotesStory 2 tomEvenPagesFooterStory 8
tomEndnotesStory 3 tomPrimaryFooterStory 9
tomCommentsStory 4 tomFirstPageHeaderStory 10
tomTextFrameStory 5 tomFirstPageFooterStory 11

戻り値

型: HRESULT

メソッドは HRESULT 値を返します。 メソッドが成功すると、 S_OKが返されます。 pValue が null の場合、メソッドは失敗し、E_INVALIDARGを返します。

要件

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

関連項目

概念

ITextRange

リファレンス

Text オブジェクト モデル