Converts the value for the height of an object from one of the ScaleMode property's units of measure to another.
[ fHeightOut = ] Object.ScaleY ( fHeight [,nScaleModeFrom] [,nScaleModeTo] )
The ScaleY method syntax has the following parts:
Name |
Type |
Description |
Object |
AForm |
AForm object |
fHeightOut |
Float |
The new number after conversion to the new unit of measurement. |
fHeight |
Val Variant |
Specifies the number to be converted from one unit of measure to the other. |
nScaleModeFrom |
Val enumAFormScaleMode |
An integer specifying the unit of measurement from which the fHeight of the object is to be converted. The possible values of nScaleModeFrom are the same as for the ScaleMode property. |
nScaleModeTo |
Val Variant |
An integer specifying the unit of measurement to which the fHeight of the object is to be converted. The possible values of nScaleModeTo are the same as for the ScaleMode property. |
enumAFormScaleMode:
Name |
Value |
Description |
aformScaleModeUser |
0 |
User |
aformScaleModeTwips |
1 |
Twips |
aformScaleModePoints |
2 |
Points |
aformScaleModePixels |
3 |
Pixels |
aformScaleModeCharacters |
4 |
Characters |
aformScaleModeInches |
5 |
Inches |
aformScaleModeMillimeters |
6 |
Millimeters |
aformScaleModeCentimeters |
7 |
Centimeters |
aformScaleModeHimetric |
8 |
Himetric |
The ScaleX and ScaleY methods take a value (width or height), with its unit of measure specified by nScaleModeFrom, and convert it to the corresponding value for the unit of measure specified by nScaleModeTo.
You can also use ScaleX and ScaleY with the PaintPicture method.
This method does not support named arguments.
The following statement converts the Y-coordinate scale on the AForm object from 8 centimeters to 8 inches:
ffrm1ScaleY1=frm1.ScaleY(8,aformScaleModeCentimeters,aformScaleModeInches)
CurrentX, CurrentY, Scale, ScaleHeight, ScaleLeft, ScaleMode, ScaleTop, ScaleWidth, ScaleX