|
CRect:Width
The Width method returns the x dimension, or
"width" of the CRect object. The
Size method returns both the width and height.
Syntax
|
nWidth = CRect:Width()
nWidth is a number
and may be positive or negative.
|
Example
The following script prints the width of the
CRect:
|
R = new_rect()
|
|
|
R:Set(100,250,-400,-1200)
|
|
|
Printf( "Width= %.2lf\n",
R:Width())
|
|
Related Topics
CRect class
Size
Height
Mira Pro x64 Script User's Guide, v.8.76 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.
|