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

定义

由系统调用来检索 ActiveX 控件的当前边界。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

参数

bounds
Rectangle Rectangle Rectangle Rectangle

ActiveX 控件的原始边界。The original bounds of the ActiveX control.

factor
SizeF SizeF SizeF SizeF

缩放因子。A scaling factor.

返回

未修改的 bounds 值。The unmodified bounds value.

注解

ActiveX 控件自行缩放,因此此方法不执行任何特殊计算,忽略factorspecified值,并返回未更改的bounds值。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.

适用于