ScrollBar.GetScaledBounds(Rectangle, SizeF, BoundsSpecified) ScrollBar.GetScaledBounds(Rectangle, SizeF, BoundsSpecified) ScrollBar.GetScaledBounds(Rectangle, SizeF, BoundsSpecified) ScrollBar.GetScaledBounds(Rectangle, SizeF, BoundsSpecified) Method

定义

返回以将 ScrollBar 缩放指定的量时要使用的边界。Returns the bounds to use when the ScrollBar is scaled by a specified amount.

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 Rectangle Rectangle

指定初始边界的 RectangleA Rectangle that specifies the initial bounds.

factor
SizeF SizeF SizeF SizeF

指示当前边界应增加的量的 SizeFA SizeF that indicates the amount the current bounds should be increased by.

specified
BoundsSpecified BoundsSpecified BoundsSpecified BoundsSpecified

一个 BoundsSpecified 值的按位组合,指示如何定义由 GetScaledBounds(Rectangle, SizeF, BoundsSpecified) 返回的控件大小和位置。A bitwise combination of the BoundsSpecified values that indicate the how to define the control's size and position returned by GetScaledBounds(Rectangle, SizeF, BoundsSpecified).

返回

指定缩放边界的 RectangleA Rectangle specifying the scaled bounds.

注解

这是一个帮助器方法,该方法由 ScaleControl 方法用来返回控件应缩放的边界。This is a helper method that used by the ScaleControl method to return the bounds that the control should be scaled by. 如果要重用 @no__t 0 缩放逻辑,则可以重写此方法,但需要提供自己的边界。You may override this method if you wish to reuse ScaleControl scaling logic, but you need to supply your own bounds.

适用于