次の方法で共有


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

'Declaration
Public Sub Scale ( _
    x1 As Single, _
    y1 As Single, _
    x2 As Single, _
    y2 As Single _
)
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 function Scale(
    x1 : float, 
    y1 : float, 
    x2 : float, 
    y2 : float
)

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.

.NET Framework Security

See Also

Reference

Printer Class

Scale Overload

Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 Namespace

Other Resources

Printer Compatibility Library

How to: Fix Upgrade Errors by Using the Printer Compatibility Library (Visual Basic)

Deploying Applications That Reference the Printer Compatibility Library