Win32 API 日本語リファレンス
ホームUI.Controls.RichEdit › ITextDocument2

ITextDocument2

COMIDispatch (デュアル)
IDispatch を実装(デュアルインターフェース)。HSP では comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。
IIDc241f5e0-7206-11d8-a2c7-00a0d1d6c6b3継承元ITextDocument呼び出し名前(IDispatch) または vtbl自前メソッド開始 vtbl26

メソッド 44

vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。

vtblメソッド
26HRESULT GetCaretType(INT* pValue)
27HRESULT SetCaretType(INT Value)
28HRESULT GetDisplays(ITextDisplays** ppDisplays)
29HRESULT GetDocumentFont(ITextFont2** ppFont)
30HRESULT SetDocumentFont(ITextFont2* pFont)
31HRESULT GetDocumentPara(ITextPara2** ppPara)
32HRESULT SetDocumentPara(ITextPara2* pPara)
33HRESULT GetEastAsianFlags(tomConstants* pFlags)
34HRESULT GetGenerator(LPWSTR* pbstr)
35HRESULT SetIMEInProgress(INT Value)
36HRESULT GetNotificationMode(INT* pValue)
37HRESULT SetNotificationMode(INT Value)
38HRESULT GetSelection2(ITextSelection2** ppSel)
39HRESULT GetStoryRanges2(ITextStoryRanges2** ppStories)
40HRESULT GetTypographyOptions(INT* pOptions)
41HRESULT GetVersion(INT* pValue)
42HRESULT GetWindow(LONGLONG* pHwnd)
43HRESULT AttachMsgFilter(IUnknown* pFilter)
44HRESULT CheckTextLimit(INT cch, INT* pcch)
45HRESULT GetCallManager(IUnknown** ppVoid)
46HRESULT GetClientRect(tomConstants Type, INT* pLeft, INT* pTop, INT* pRight, INT* pBottom)
47HRESULT GetEffectColor(INT Index, INT* pValue)
48HRESULT GetImmContext(LONGLONG* pContext)
49HRESULT GetPreferredFont(INT cp, INT CharRep, INT Options, INT curCharRep, INT curFontSize, LPWSTR* pbstr, INT* pPitchAndFamily, INT* pNewFontSize)
50HRESULT GetProperty(INT Type, INT* pValue)
51HRESULT GetStrings(ITextStrings** ppStrs)
52HRESULT Notify(INT Notify)
53HRESULT Range2(INT cpActive, INT cpAnchor, ITextRange2** ppRange)
54HRESULT RangeFromPoint2(INT x, INT y, INT Type, ITextRange2** ppRange)
55HRESULT ReleaseCallManager(IUnknown* pVoid)
56HRESULT ReleaseImmContext(LONGLONG Context)
57HRESULT SetEffectColor(INT Index, INT Value)
58HRESULT SetProperty(INT Type, INT Value)
59HRESULT SetTypographyOptions(INT Options, INT Mask)
60HRESULT SysBeep()
61HRESULT Update(INT Value)
62HRESULT UpdateWindow()
63HRESULT GetMathProperties(INT* pOptions)
64HRESULT SetMathProperties(INT Options, INT Mask)
65HRESULT GetActiveStory(ITextStory** ppStory)
66HRESULT SetActiveStory(ITextStory* pStory)
67HRESULT GetMainStory(ITextStory** ppStory)
68HRESULT GetNewStory(ITextStory** ppStory)
69HRESULT GetStory(INT Index, ITextStory** ppStory)