AxHost.GetScaledBounds(Rectangle, SizeF, BoundsSpecified) 方法

定义

由系统调用来检索 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

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

factor
SizeF

缩放因子。A scaling factor.

specified
BoundsSpecified

一个 BoundsSpecified 值。A BoundsSpecified value.

返回

未修改的 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.

适用于