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 值。

傳回

Rectangle

未經修改的 bounds 值。

備註

ActiveX 控制項會自行調整,因此此方法不會執行任何特殊計算、忽略 factorspecified 值,並傳回 bounds 未變更的值。

適用於