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

定义

检索在其中缩放边界的边界 ListBox

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 表示控件在其中缩放的边界。

注解

ListBox 类将重写 Control.GetScaledBounds 该方法,以确保所请求的高度是缩放的,而不是当前高度。

适用于