Win32 API 日本語リファレンス
ホームWeb.MsHtml › IHTMLStyle2

IHTMLStyle2

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

メソッド 63

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

vtbl 7 HRESULT put_tableLayout(LPWSTR v)
vLPWSTRin設定するテーブルのレイアウト方式 (table-layout)を指定する。
vtbl 8 HRESULT get_tableLayout(LPWSTR* p)
pLPWSTR*out現在のテーブルのレイアウト方式 (table-layout)を受け取る。
vtbl 9 HRESULT put_borderCollapse(LPWSTR v)
vLPWSTRin設定するセル境界の結合方式 (border-collapse)を指定する。
vtbl 10 HRESULT get_borderCollapse(LPWSTR* p)
pLPWSTR*out現在のセル境界の結合方式 (border-collapse)を受け取る。
vtbl 11 HRESULT put_direction(LPWSTR v)
vLPWSTRin設定する文字方向 (direction)を指定する。
vtbl 12 HRESULT get_direction(LPWSTR* p)
pLPWSTR*out現在の文字方向 (direction)を受け取る。
vtbl 13 HRESULT put_behavior(LPWSTR v)
vLPWSTRin設定するDHTML ビヘイビア (behavior)を指定する。
vtbl 14 HRESULT get_behavior(LPWSTR* p)
pLPWSTR*out現在のDHTML ビヘイビア (behavior)を受け取る。
vtbl 15 HRESULT setExpression(LPWSTR propname, LPWSTR expression, LPWSTR language)
propnameLPWSTRin式を設定する対象のプロパティ名を指定する。
expressionLPWSTRinプロパティ値を算出するスクリプト式を指定する。
languageLPWSTRin式を記述しているスクリプト言語を指定する。
vtbl 16 HRESULT getExpression(LPWSTR propname, VARIANT* expression)
propnameLPWSTRin式を取得する対象のプロパティ名を指定する。
expressionVARIANT*out設定されているスクリプト式を受け取る。
vtbl 17 HRESULT removeExpression(LPWSTR propname, VARIANT_BOOL* pfSuccess)
propnameLPWSTRin式を削除する対象のプロパティ名を指定する。
pfSuccessVARIANT_BOOL*out式が削除できたかどうかを TRUE/FALSE で受け取る。
vtbl 18 HRESULT put_position(LPWSTR v)
vLPWSTRin設定する配置方式 (position)を指定する。
vtbl 19 HRESULT get_position(LPWSTR* p)
pLPWSTR*out現在の配置方式 (position)を受け取る。
vtbl 20 HRESULT put_unicodeBidi(LPWSTR v)
vLPWSTRin設定する双方向テキスト埋め込み (unicode-bidi)を指定する。
vtbl 21 HRESULT get_unicodeBidi(LPWSTR* p)
pLPWSTR*out現在の双方向テキスト埋め込み (unicode-bidi)を受け取る。
vtbl 22 HRESULT put_bottom(VARIANT v)
vVARIANTin設定する下端位置 (bottom)を指定する。
vtbl 23 HRESULT get_bottom(VARIANT* p)
pVARIANT*out現在の下端位置 (bottom)を受け取る。
vtbl 24 HRESULT put_right(VARIANT v)
vVARIANTin設定する右端位置 (right)を指定する。
vtbl 25 HRESULT get_right(VARIANT* p)
pVARIANT*out現在の右端位置 (right)を受け取る。
vtbl 26 HRESULT put_pixelBottom(INT v)
vINTin設定する下端位置のピクセル値 (pixelBottom)を指定する。
vtbl 27 HRESULT get_pixelBottom(INT* p)
pINT*out現在の下端位置のピクセル値 (pixelBottom)を受け取る。
vtbl 28 HRESULT put_pixelRight(INT v)
vINTin設定する右端位置のピクセル値 (pixelRight)を指定する。
vtbl 29 HRESULT get_pixelRight(INT* p)
pINT*out現在の右端位置のピクセル値 (pixelRight)を受け取る。
vtbl 30 HRESULT put_posBottom(FLOAT v)
vFLOATin設定する下端位置の数値 (posBottom)を指定する。
vtbl 31 HRESULT get_posBottom(FLOAT* p)
pFLOAT*out現在の下端位置の数値 (posBottom)を受け取る。
vtbl 32 HRESULT put_posRight(FLOAT v)
vFLOATin設定する右端位置の数値 (posRight)を指定する。
vtbl 33 HRESULT get_posRight(FLOAT* p)
pFLOAT*out現在の右端位置の数値 (posRight)を受け取る。
vtbl 34 HRESULT put_imeMode(LPWSTR v)
vLPWSTRin設定するIME モード (ime-mode)を指定する。
vtbl 35 HRESULT get_imeMode(LPWSTR* p)
pLPWSTR*out現在のIME モード (ime-mode)を受け取る。
vtbl 36 HRESULT put_rubyAlign(LPWSTR v)
vLPWSTRin設定するルビの揃え (ruby-align)を指定する。
vtbl 37 HRESULT get_rubyAlign(LPWSTR* p)
pLPWSTR*out現在のルビの揃え (ruby-align)を受け取る。
vtbl 38 HRESULT put_rubyPosition(LPWSTR v)
vLPWSTRin設定するルビの位置 (ruby-position)を指定する。
vtbl 39 HRESULT get_rubyPosition(LPWSTR* p)
pLPWSTR*out現在のルビの位置 (ruby-position)を受け取る。
vtbl 40 HRESULT put_rubyOverhang(LPWSTR v)
vLPWSTRin設定するルビのはみ出し (ruby-overhang)を指定する。
vtbl 41 HRESULT get_rubyOverhang(LPWSTR* p)
pLPWSTR*out現在のルビのはみ出し (ruby-overhang)を受け取る。
vtbl 42 HRESULT put_layoutGridChar(VARIANT v)
vVARIANTin設定するレイアウトグリッドの字送り (layout-grid-char)を指定する。
vtbl 43 HRESULT get_layoutGridChar(VARIANT* p)
pVARIANT*out現在のレイアウトグリッドの字送り (layout-grid-char)を受け取る。
vtbl 44 HRESULT put_layoutGridLine(VARIANT v)
vVARIANTin設定するレイアウトグリッドの行送り (layout-grid-line)を指定する。
vtbl 45 HRESULT get_layoutGridLine(VARIANT* p)
pVARIANT*out現在のレイアウトグリッドの行送り (layout-grid-line)を受け取る。
vtbl 46 HRESULT put_layoutGridMode(LPWSTR v)
vLPWSTRin設定するレイアウトグリッドのモード (layout-grid-mode)を指定する。
vtbl 47 HRESULT get_layoutGridMode(LPWSTR* p)
pLPWSTR*out現在のレイアウトグリッドのモード (layout-grid-mode)を受け取る。
vtbl 48 HRESULT put_layoutGridType(LPWSTR v)
vLPWSTRin設定するレイアウトグリッドの種別 (layout-grid-type)を指定する。
vtbl 49 HRESULT get_layoutGridType(LPWSTR* p)
pLPWSTR*out現在のレイアウトグリッドの種別 (layout-grid-type)を受け取る。
vtbl 50 HRESULT put_layoutGrid(LPWSTR v)
vLPWSTRin設定するレイアウトグリッドの一括指定 (layout-grid)を指定する。
vtbl 51 HRESULT get_layoutGrid(LPWSTR* p)
pLPWSTR*out現在のレイアウトグリッドの一括指定 (layout-grid)を受け取る。
vtbl 52 HRESULT put_wordBreak(LPWSTR v)
vLPWSTRin設定する単語の改行規則 (word-break)を指定する。
vtbl 53 HRESULT get_wordBreak(LPWSTR* p)
pLPWSTR*out現在の単語の改行規則 (word-break)を受け取る。
vtbl 54 HRESULT put_lineBreak(LPWSTR v)
vLPWSTRin設定する行末の禁則処理 (line-break)を指定する。
vtbl 55 HRESULT get_lineBreak(LPWSTR* p)
pLPWSTR*out現在の行末の禁則処理 (line-break)を受け取る。
vtbl 56 HRESULT put_textJustify(LPWSTR v)
vLPWSTRin設定する均等割り付け方式 (text-justify)を指定する。
vtbl 57 HRESULT get_textJustify(LPWSTR* p)
pLPWSTR*out現在の均等割り付け方式 (text-justify)を受け取る。
vtbl 58 HRESULT put_textJustifyTrim(LPWSTR v)
vLPWSTRin設定する均等割り付け時の文字詰め (text-justify-trim)を指定する。
vtbl 59 HRESULT get_textJustifyTrim(LPWSTR* p)
pLPWSTR*out現在の均等割り付け時の文字詰め (text-justify-trim)を受け取る。
vtbl 60 HRESULT put_textKashida(VARIANT v)
vVARIANTin設定するカシダによる伸長 (text-kashida)を指定する。
vtbl 61 HRESULT get_textKashida(VARIANT* p)
pVARIANT*out現在のカシダによる伸長 (text-kashida)を受け取る。
vtbl 62 HRESULT put_textAutospace(LPWSTR v)
vLPWSTRin設定する和欧文間の自動空き (text-autospace)を指定する。
vtbl 63 HRESULT get_textAutospace(LPWSTR* p)
pLPWSTR*out現在の和欧文間の自動空き (text-autospace)を受け取る。
vtbl 64 HRESULT put_overflowX(LPWSTR v)
vLPWSTRin設定する水平方向のはみ出しの扱い (overflow-x)を指定する。
vtbl 65 HRESULT get_overflowX(LPWSTR* p)
pLPWSTR*out現在の水平方向のはみ出しの扱い (overflow-x)を受け取る。
vtbl 66 HRESULT put_overflowY(LPWSTR v)
vLPWSTRin設定する垂直方向のはみ出しの扱い (overflow-y)を指定する。
vtbl 67 HRESULT get_overflowY(LPWSTR* p)
pLPWSTR*out現在の垂直方向のはみ出しの扱い (overflow-y)を受け取る。
vtbl 68 HRESULT put_accelerator(LPWSTR v)
vLPWSTRin設定するアクセラレータ下線表示 (accelerator)を指定する。
vtbl 69 HRESULT get_accelerator(LPWSTR* p)
pLPWSTR*out現在のアクセラレータ下線表示 (accelerator)を受け取る。

HSP用 COM定義

#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"

出力引数:
#define global IID_IHTMLStyle2 "{3050F4A2-98B5-11CF-BB82-00AA00BDCE0B}"
#usecom global IHTMLStyle2 IID_IHTMLStyle2 "{}"
#comfunc global IHTMLStyle2_put_tableLayout      7 wstr
#comfunc global IHTMLStyle2_get_tableLayout      8 var
#comfunc global IHTMLStyle2_put_borderCollapse   9 wstr
#comfunc global IHTMLStyle2_get_borderCollapse   10 var
#comfunc global IHTMLStyle2_put_direction        11 wstr
#comfunc global IHTMLStyle2_get_direction        12 var
#comfunc global IHTMLStyle2_put_behavior         13 wstr
#comfunc global IHTMLStyle2_get_behavior         14 var
#comfunc global IHTMLStyle2_setExpression        15 wstr,wstr,wstr
#comfunc global IHTMLStyle2_getExpression        16 wstr,var
#comfunc global IHTMLStyle2_removeExpression     17 wstr,var
#comfunc global IHTMLStyle2_put_position         18 wstr
#comfunc global IHTMLStyle2_get_position         19 var
#comfunc global IHTMLStyle2_put_unicodeBidi      20 wstr
#comfunc global IHTMLStyle2_get_unicodeBidi      21 var
#comfunc global IHTMLStyle2_put_bottom           22 int
#comfunc global IHTMLStyle2_get_bottom           23 var
#comfunc global IHTMLStyle2_put_right            24 int
#comfunc global IHTMLStyle2_get_right            25 var
#comfunc global IHTMLStyle2_put_pixelBottom      26 int
#comfunc global IHTMLStyle2_get_pixelBottom      27 var
#comfunc global IHTMLStyle2_put_pixelRight       28 int
#comfunc global IHTMLStyle2_get_pixelRight       29 var
#comfunc global IHTMLStyle2_put_posBottom        30 float
#comfunc global IHTMLStyle2_get_posBottom        31 var
#comfunc global IHTMLStyle2_put_posRight         32 float
#comfunc global IHTMLStyle2_get_posRight         33 var
#comfunc global IHTMLStyle2_put_imeMode          34 wstr
#comfunc global IHTMLStyle2_get_imeMode          35 var
#comfunc global IHTMLStyle2_put_rubyAlign        36 wstr
#comfunc global IHTMLStyle2_get_rubyAlign        37 var
#comfunc global IHTMLStyle2_put_rubyPosition     38 wstr
#comfunc global IHTMLStyle2_get_rubyPosition     39 var
#comfunc global IHTMLStyle2_put_rubyOverhang     40 wstr
#comfunc global IHTMLStyle2_get_rubyOverhang     41 var
#comfunc global IHTMLStyle2_put_layoutGridChar   42 int
#comfunc global IHTMLStyle2_get_layoutGridChar   43 var
#comfunc global IHTMLStyle2_put_layoutGridLine   44 int
#comfunc global IHTMLStyle2_get_layoutGridLine   45 var
#comfunc global IHTMLStyle2_put_layoutGridMode   46 wstr
#comfunc global IHTMLStyle2_get_layoutGridMode   47 var
#comfunc global IHTMLStyle2_put_layoutGridType   48 wstr
#comfunc global IHTMLStyle2_get_layoutGridType   49 var
#comfunc global IHTMLStyle2_put_layoutGrid       50 wstr
#comfunc global IHTMLStyle2_get_layoutGrid       51 var
#comfunc global IHTMLStyle2_put_wordBreak        52 wstr
#comfunc global IHTMLStyle2_get_wordBreak        53 var
#comfunc global IHTMLStyle2_put_lineBreak        54 wstr
#comfunc global IHTMLStyle2_get_lineBreak        55 var
#comfunc global IHTMLStyle2_put_textJustify      56 wstr
#comfunc global IHTMLStyle2_get_textJustify      57 var
#comfunc global IHTMLStyle2_put_textJustifyTrim  58 wstr
#comfunc global IHTMLStyle2_get_textJustifyTrim  59 var
#comfunc global IHTMLStyle2_put_textKashida      60 int
#comfunc global IHTMLStyle2_get_textKashida      61 var
#comfunc global IHTMLStyle2_put_textAutospace    62 wstr
#comfunc global IHTMLStyle2_get_textAutospace    63 var
#comfunc global IHTMLStyle2_put_overflowX        64 wstr
#comfunc global IHTMLStyle2_get_overflowX        65 var
#comfunc global IHTMLStyle2_put_overflowY        66 wstr
#comfunc global IHTMLStyle2_get_overflowY        67 var
#comfunc global IHTMLStyle2_put_accelerator      68 wstr
#comfunc global IHTMLStyle2_get_accelerator      69 var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。