System.Windows.Forms.Control.Scale Method

Scales the control and all child controls by the specified scaling factor.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
public void Scale (System.Drawing.SizeF factor)

Parameters

factor
A System.Drawing.SizeF containing the horizontal and vertical scaling factors.

Remarks

The Control.Scale(System.Drawing.SizeF) method scales the control by the specified scaling factor. It also recursively scales all child controls if the Control.ScaleChildren property is true. Internally, this method calls Control.ScaleControl(System.Drawing.SizeF, BoundsSpecified) to scale each control.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0