System.Windows.Forms.ScrollBar.GetScaledBounds Method

Returns the bounds to use when the System.Windows.Forms.ScrollBar is scaled by a specified amount.

Syntax

protected override System.Drawing.Rectangle GetScaledBounds (System.Drawing.Rectangle bounds, System.Drawing.SizeF factor, BoundsSpecified specified)

Parameters

bounds
A System.Drawing.Rectangle that specifies the initial bounds.
factor
A System.Drawing.SizeF that indicates the amount the current bounds should be increased by.
specified
A bitwise combination of the System.Windows.Forms.BoundsSpecified values that indicate the how to define the control's size and position returned by ScrollBar.GetScaledBounds(System.Drawing.Rectangle, System.Drawing.SizeF, BoundsSpecified).

Returns

A System.Drawing.Rectangle specifying the scaled bounds.

Remarks

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

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0