AxHost::GetScaledBounds Method (Rectangle, SizeF, BoundsSpecified)

 

Called by the system to retrieve the current bounds of the ActiveX control.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

protected:
virtual Rectangle GetScaledBounds(
	Rectangle bounds,
	SizeF factor,
	BoundsSpecified specified
) override

Parameters

bounds
Type: System.Drawing::Rectangle

The original bounds of the ActiveX control.

factor
Type: System.Drawing::SizeF

A scaling factor.

specified
Type: System.Windows.Forms::BoundsSpecified

A BoundsSpecified value.

Return Value

Type: System.Drawing::Rectangle

The unmodified bounds value.

ActiveX controls scale themselves, so this method does not perform any special calculations, ignores the factor and specified values, and returns the bounds value unchanged.

.NET Framework
Available since 2.0
Return to top
Show: