Share via


CellHeight, CellLeft, CellTop, CellWidth Properties (ModHFGrid)

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Returns the position and size of the current cell in twips. These properties are not available at design time.

Syntax

object.CellHeight [=value]
object.CellLeft [=value]
object.CellTop [=value]
object.CellWidth [=value]

Syntax for the CellHeight, CellLeft, CellTop, and CellWidth properties has these parts:

Part Description
object An object expression that evaluates to the ModHFGrid Control object.
value A numeric expression that specifies the return position or size of the current cell.

Remarks

These properties are useful if you want to emulate in-cell editing. By trapping the ModHFGrid's KeyPress event, you can place a text box or some other control over the current cell and make it possible for the user to edit its contents.

The return values are always in twips, regardless of the form's ScaleMode setting.

See Also

FillStyle Property (ModHFGrid) | ModHFGrid Control