语言

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

定义

系统调用以检索 ActiveX 控件的当前边界。

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 控件的原始边界。

factor
SizeF

缩放因子。

specified
BoundsSpecified

一个 BoundsSpecified 值。

返回

未修改 bounds 的值。

注解

ActiveX 控件自行缩放,因此此方法不执行任何特殊计算,忽略 factor 和 specified 值,并返回 bounds 未更改的值。

适用于