CRect:Height


The Height method returns the y dimension, or "height" of the CRect object. The Size method returns both the width and height.

Syntax

nHeight = CRect:Height()

where

    nHeight is a number and may be positive or negative.

Example

The following script prints the height of the CRect:

R = NewRect(100,250,-400,-1200)

-- create a CRect object

Printf( "Height = %.2lf\n",R:Height())

-- result: Height = -800.00

Related Topics

Size

Width

CRect class