Forces the control scaling with font mode with the specified font. Namespace: Microsoft.ConfigurationManagement.AdminConsole
Assembly: Microsoft.ConfigurationManagement (in microsoft.configurationmanagement.dll)

Usage

Visual Basic
Dim control As ContainerControl
Dim font As Font
Dim originalDimension As SizeF

UtilityClass.ForceScaleWithFont(control, font, originalDimension)

Syntax

Visual Basic
Public Shared Sub ForceScaleWithFont ( _
		control As ContainerControl, _
		font As Font, _
		originalDimension As SizeF _
)
C#
public static void ForceScaleWithFont (
		ContainerControl control,
		Font font,
		SizeF originalDimension
)
C++
public:
static void ForceScaleWithFont (
		ContainerControl^ control, 
		Font^ font, 
		SizeF originalDimension
)
J#
public static void ForceScaleWithFont (
		ContainerControl control, 
		Font font, 
		SizeF originalDimension
)
JScript
public static function ForceScaleWithFont (
		control : ContainerControl, 
		font : Font, 
		originalDimension : SizeF
)

Parameters

control

[in] System.Windows.Forms.ContainerControl object.

font

[in] System.Drawing.Font object that represents the font.

originalDimension

[in] System.Drawing.SizeF object for the original dimension.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2003,Windows Vista

See Also