CRect:Width CRect:Size

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()

    nHeight is a number and may be positive or negative.

Example

The following script fragment prints the height of the CRect:

 

R = CRect:new()

-- create a CRect object

R:Set( 100, 250, -400, -1200 )

 

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

-- result: Height = -800.00

Related Topics

CRect, Size, Width