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.

傳回

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

備註

ActiveX 控制項會自行調整,因此這個方法不會執行任何特殊的factor計算、忽略和specified值,也會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.

適用於