#define global IID_ITextRange "{8CC497C2-A1DF-11CE-8098-00AA0047BE5D}"
#usecom global ITextRange IID_ITextRange "{}"
#comfunc global ITextRange_GetText 7 var
#comfunc global ITextRange_SetText 8 wstr
#comfunc global ITextRange_GetChar 9 var
#comfunc global ITextRange_SetChar 10 int
#comfunc global ITextRange_GetDuplicate 11 sptr
#comfunc global ITextRange_GetFormattedText 12 sptr
#comfunc global ITextRange_SetFormattedText 13 sptr
#comfunc global ITextRange_GetStart 14 var
#comfunc global ITextRange_SetStart 15 int
#comfunc global ITextRange_GetEnd 16 var
#comfunc global ITextRange_SetEnd 17 int
#comfunc global ITextRange_GetFont 18 sptr
#comfunc global ITextRange_SetFont 19 sptr
#comfunc global ITextRange_GetPara 20 sptr
#comfunc global ITextRange_SetPara 21 sptr
#comfunc global ITextRange_GetStoryLength 22 var
#comfunc global ITextRange_GetStoryType 23 var
#comfunc global ITextRange_Collapse 24 int
#comfunc global ITextRange_Expand 25 int,var
#comfunc global ITextRange_GetIndex 26 int,var
#comfunc global ITextRange_SetIndex 27 int,int,int
#comfunc global ITextRange_SetRange 28 int,int
#comfunc global ITextRange_InRange 29 sptr,var
#comfunc global ITextRange_InStory 30 sptr,var
#comfunc global ITextRange_IsEqual 31 sptr,var
#comfunc global ITextRange_Select 32
#comfunc global ITextRange_StartOf 33 int,int,var
#comfunc global ITextRange_EndOf 34 int,int,var
#comfunc global ITextRange_Move 35 int,int,var
#comfunc global ITextRange_MoveStart 36 int,int,var
#comfunc global ITextRange_MoveEnd 37 int,int,var
#comfunc global ITextRange_MoveWhile 38 var,int,var
#comfunc global ITextRange_MoveStartWhile 39 var,int,var
#comfunc global ITextRange_MoveEndWhile 40 var,int,var
#comfunc global ITextRange_MoveUntil 41 var,int,var
#comfunc global ITextRange_MoveStartUntil 42 var,int,var
#comfunc global ITextRange_MoveEndUntil 43 var,int,var
#comfunc global ITextRange_FindText 44 wstr,int,int,var
#comfunc global ITextRange_FindTextStart 45 wstr,int,int,var
#comfunc global ITextRange_FindTextEnd 46 wstr,int,int,var
#comfunc global ITextRange_Delete 47 int,int,var
#comfunc global ITextRange_Cut 48 var
#comfunc global ITextRange_Copy 49 var
#comfunc global ITextRange_Paste 50 var,int
#comfunc global ITextRange_CanPaste 51 var,int,var
#comfunc global ITextRange_CanEdit 52 var
#comfunc global ITextRange_ChangeCase 53 int
#comfunc global ITextRange_GetPoint 54 int,var,var
#comfunc global ITextRange_SetPoint 55 int,int,int,int
#comfunc global ITextRange_ScrollIntoView 56 int
#comfunc global ITextRange_GetEmbeddedObject 57 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_ITextRange "{8CC497C2-A1DF-11CE-8098-00AA0047BE5D}"
#usecom global ITextRange IID_ITextRange "{}"
#comfunc global ITextRange_GetText 7 sptr
#comfunc global ITextRange_SetText 8 wstr
#comfunc global ITextRange_GetChar 9 sptr
#comfunc global ITextRange_SetChar 10 int
#comfunc global ITextRange_GetDuplicate 11 sptr
#comfunc global ITextRange_GetFormattedText 12 sptr
#comfunc global ITextRange_SetFormattedText 13 sptr
#comfunc global ITextRange_GetStart 14 sptr
#comfunc global ITextRange_SetStart 15 int
#comfunc global ITextRange_GetEnd 16 sptr
#comfunc global ITextRange_SetEnd 17 int
#comfunc global ITextRange_GetFont 18 sptr
#comfunc global ITextRange_SetFont 19 sptr
#comfunc global ITextRange_GetPara 20 sptr
#comfunc global ITextRange_SetPara 21 sptr
#comfunc global ITextRange_GetStoryLength 22 sptr
#comfunc global ITextRange_GetStoryType 23 sptr
#comfunc global ITextRange_Collapse 24 int
#comfunc global ITextRange_Expand 25 int,sptr
#comfunc global ITextRange_GetIndex 26 int,sptr
#comfunc global ITextRange_SetIndex 27 int,int,int
#comfunc global ITextRange_SetRange 28 int,int
#comfunc global ITextRange_InRange 29 sptr,sptr
#comfunc global ITextRange_InStory 30 sptr,sptr
#comfunc global ITextRange_IsEqual 31 sptr,sptr
#comfunc global ITextRange_Select 32
#comfunc global ITextRange_StartOf 33 int,int,sptr
#comfunc global ITextRange_EndOf 34 int,int,sptr
#comfunc global ITextRange_Move 35 int,int,sptr
#comfunc global ITextRange_MoveStart 36 int,int,sptr
#comfunc global ITextRange_MoveEnd 37 int,int,sptr
#comfunc global ITextRange_MoveWhile 38 sptr,int,sptr
#comfunc global ITextRange_MoveStartWhile 39 sptr,int,sptr
#comfunc global ITextRange_MoveEndWhile 40 sptr,int,sptr
#comfunc global ITextRange_MoveUntil 41 sptr,int,sptr
#comfunc global ITextRange_MoveStartUntil 42 sptr,int,sptr
#comfunc global ITextRange_MoveEndUntil 43 sptr,int,sptr
#comfunc global ITextRange_FindText 44 wstr,int,int,sptr
#comfunc global ITextRange_FindTextStart 45 wstr,int,int,sptr
#comfunc global ITextRange_FindTextEnd 46 wstr,int,int,sptr
#comfunc global ITextRange_Delete 47 int,int,sptr
#comfunc global ITextRange_Cut 48 sptr
#comfunc global ITextRange_Copy 49 sptr
#comfunc global ITextRange_Paste 50 sptr,int
#comfunc global ITextRange_CanPaste 51 sptr,int,sptr
#comfunc global ITextRange_CanEdit 52 sptr
#comfunc global ITextRange_ChangeCase 53 int
#comfunc global ITextRange_GetPoint 54 int,sptr,sptr
#comfunc global ITextRange_SetPoint 55 int,int,int,int
#comfunc global ITextRange_ScrollIntoView 56 int
#comfunc global ITextRange_GetEmbeddedObject 57 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。