ホーム › UI.Accessibility › IUIAutomationTextRange3
IUIAutomationTextRange3
COMメソッド 3
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 22 HRESULT GetEnclosingElementBuildCache(IUIAutomationCacheRequest* cacheRequest, IUIAutomationElement** enclosingElement)
| cacheRequest | IUIAutomationCacheRequest* | in | 取得する要素にキャッシュするプロパティおよびパターンを指定するキャッシュ要求へのポインタである。 |
| enclosingElement | IUIAutomationElement** | out | このテキスト範囲を内包する最も内側の要素を受け取るインターフェイスポインタへのポインタである。 |
vtbl 23 HRESULT GetChildrenBuildCache(IUIAutomationCacheRequest* cacheRequest, IUIAutomationElementArray** children)
| cacheRequest | IUIAutomationCacheRequest* | in | 取得する各要素にキャッシュするプロパティおよびパターンを指定するキャッシュ要求へのポインタである。 |
| children | IUIAutomationElementArray** | out | このテキスト範囲に含まれる子要素の集合を受け取る IUIAutomationElementArray へのポインタへのポインタである。 |
vtbl 24 HRESULT GetAttributeValues(UIA_TEXTATTRIBUTE_ID* attributeIds, INT attributeIdCount, SAFEARRAY** attributeValues)
| attributeIds | UIA_TEXTATTRIBUTE_ID* | in | 値を取得するテキスト属性の ID 配列へのポインタである。 |
| attributeIdCount | INT | in | attributeIds 配列に含まれる属性 ID の数を指定する。 |
| attributeValues | SAFEARRAY** | out | 各属性に対応する値を格納した SAFEARRAY を受け取るポインタへのポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IUIAutomationTextRange3 "{6A315D69-5512-4C2E-85F0-53FCE6DD4BC2}" #usecom global IUIAutomationTextRange3 IID_IUIAutomationTextRange3 "{}" #comfunc global IUIAutomationTextRange3_GetEnclosingElementBuildCache 22 sptr,sptr #comfunc global IUIAutomationTextRange3_GetChildrenBuildCache 23 sptr,sptr #comfunc global IUIAutomationTextRange3_GetAttributeValues 24 var,int,var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IUIAutomationTextRange3 "{6A315D69-5512-4C2E-85F0-53FCE6DD4BC2}" #usecom global IUIAutomationTextRange3 IID_IUIAutomationTextRange3 "{}" #comfunc global IUIAutomationTextRange3_GetEnclosingElementBuildCache 22 sptr,sptr #comfunc global IUIAutomationTextRange3_GetChildrenBuildCache 23 sptr,sptr #comfunc global IUIAutomationTextRange3_GetAttributeValues 24 sptr,int,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。