語言

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 不變的值。

適用於