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

bullet.gif    nHeight is a number and may be positive or negative.

Example

The following script prints the height of the CRect:

R = new_rect()

-- create a CRect object

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

 

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

-- result: Height = -800.00

Related Topics

CRect class, Size, Width


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics, Inc. All Rights Reserved.