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

定义

检索缩放控件时的边界。

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

指定要在显示器边界中检索的区域的 Rectangle

factor
SizeF

控件边界的高度和宽度。

specified
BoundsSpecified

BoundsSpecified 值之一,指定在定义控件大小和位置时要使用的控件边界。

返回

Rectangle

一个表示控件缩放边界的 Rectangle

适用于

另请参阅