AxHost.GetScaledBounds(Rectangle, SizeF, BoundsSpecified) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
系統呼叫它來取得 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
傳回
未修改 bounds 的價值。
備註
ActiveX 會控制自身縮放,因此此方法不會執行特殊計算,忽略 factor 和 specified 值,並回傳 bounds 不變的值。