Редагувати

Поділитися через


ScrollBar.GetScaledBounds(Rectangle, SizeF, BoundsSpecified) Method

Definition

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

Parameters

bounds
Rectangle

A Rectangle that specifies the initial bounds.

factor
SizeF

A SizeF that indicates the amount the current bounds should be increased by.

specified
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).

Returns

A Rectangle specifying the scaled bounds.

Remarks

This is a helper method that used by the ScaleControl method to return the bounds that the control should be scaled by. You may override this method if you wish to reuse ScaleControl scaling logic, but you need to supply your own bounds.

Applies to