Defines the coordinate system for a Form, PictureBox, or Printer. Named arguments are not supported.
object.SetScale x1, y1, x2, y2
The parts of the SetScale method syntax are described in the following table.
Part | Description |
---|---|
x1 | Optional. An object expression that evaluates to an object. If object is omitted, the Form object with the focus is assumed to be object. |
y1 | Optional. Single-precision values indicating the horizontal (x-axis) and vertical (y-axis) coordinates that define the upper-left corner of object. Parentheses must enclose the values. If omitted, the second set of coordinates must also be omitted. |
x2 | Optional. Single-precision values indicating the horizontal and vertical coordinates that define the lower-right corner of object. . If omitted, the first set of coordinates must also be omitted. |
y2 | Optional. |
The SetScale method enables you to reset the coordinate system to any scale you choose. SetScale affects the coordinate system for both run-time graphics statements and the placement of controls.
If you use SetScale with no arguments (both sets of coordinates omitted), it resets the coordinate system to twips.