Property

Method

Event

 

 

GetCurrentCellSize

Gets the size (height and width) of the current cell.

Syntax

    HRESULT GetCurrentCellSize(
    VARIANT* pWidth,
    VARIANT* pHeight
    );

Parameters

pWidth

[out] Width of the current cell.

pHeight

[out] Height of the current cell.

Return Values

0 (always)

Remarks

If the caret is not inside a cell, the method fails and the return values for the width and height are '0'.

Sample Codes

VBScript

dim object, x, y
set object = document.editForm
object.wec.GetCurrentCellSize x, y

See Also

SetCurrentCellSize