Printer.Scale Method (Single, Single, Single, Single)

 

Defines the coordinate system of the Printer object.

Namespace:   Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6
Assembly:  Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)

Syntax

public void Scale(
    float x1,
    float y1,
    float x2,
    float y2
)
public:
void Scale(
    float x1,
    float y1,
    float x2,
    float y2
)
member Scale : 
        x1:float32 *
        y1:float32 *
        x2:float32 *
        y2:float32 -> unit
Public Sub Scale (
    x1 As Single,
    y1 As Single,
    x2 As Single,
    y2 As Single
)

Parameters

  • x1
    Type: System.Single

    Single value indicating the horizontal coordinates that defines the upper-left corner of the object. Parentheses must enclose the values.

  • y1
    Type: System.Single

    Single value indicating the vertical coordinates that defines the upper-left corner of the object. Parentheses must enclose the values.

  • x2
    Type: System.Single

    Single value indicating the horizontal coordinates that defines the lower-right corner of the object. Parentheses must enclose the values.

  • y2
    Type: System.Single

    Single value indicating the vertical coordinates that defines the lower-right corner of the object. Parentheses must enclose the values.

Remarks

This method sets the ScaleHeight, ScaleWidth, ScaleLeft, and ScaleTop properties in one statement, and sets ScaleMode to vbUser.

If you use the overloaded Scale method (omitting both sets of coordinates), it resets the coordinate system to twips.

Note

Functions and objects in the Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

See Also

Scale Overload
Printer Class
Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 Namespace

4e434922-3709-49c6-a69d-38120ed72d7a7f9351ea-cb3e-4615-8f70-5a29c165c1a7bc1bcb98-e13b-4c68-a514-045c042dbf36

Return to top