プロパティ

メソッド

イベント

 

 

GetCurrentCellWidth

キャレットが位置したセルの幅をリターンします。

構文

    HRESULT GetCurrentCellWidth(
    long *pWidth
    );

パラメータ

pWidth

[out, retval] セルの幅をピルセル単位に変換します。

リターン値

'0' ( 常時)

サンプル コード

JScript

var wec;
var width, height;
wec = document.Wec;
width = wec.GetCurrentCellWidth();
height = wec.GetCurrentCellHeight();
alert("Cell Width : " + width);
alert("Cell Height : " + height);

VBScript

Dim width, height
Dim fRef
fRef = document.form
width = fRef.Wec.GetCurrentCellWidth
height = fRef.Wec.GetCurrentCellHeight
MsgBox "Cell Width : " & widht
MsgBox "Cell Height : " & height

See Also

GetCurrentCellHeight, GetCurrentCelSize, SetCurrentCellSize