Szerkesztés

Megosztás a következőn keresztül:


AxHost.GetScaledBounds(Rectangle, SizeF, BoundsSpecified) Method

Definition

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

protected:
 override System::Drawing::Rectangle GetScaledBounds(System::Drawing::Rectangle bounds, System::Drawing::SizeF factor, System::Windows::Forms::BoundsSpecified specified);
protected override System.Drawing.Rectangle GetScaledBounds (System.Drawing.Rectangle bounds, System.Drawing.SizeF factor, System.Windows.Forms.BoundsSpecified specified);
override this.GetScaledBounds : System.Drawing.Rectangle * System.Drawing.SizeF * System.Windows.Forms.BoundsSpecified -> System.Drawing.Rectangle
Protected Overrides Function GetScaledBounds (bounds As Rectangle, factor As SizeF, specified As BoundsSpecified) As Rectangle

Parameters

bounds
Rectangle

The original bounds of the ActiveX control.

factor
SizeF

A scaling factor.

specified
BoundsSpecified

A BoundsSpecified value.

Returns

The unmodified bounds value.

Remarks

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.

Applies to