ScrollBar::GetScaledBounds Method (Rectangle, SizeF, BoundsSpecified)
.NET Framework (current version)
Returns the bounds to use when the ScrollBar is scaled by a specified amount.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
protected: virtual Rectangle GetScaledBounds( Rectangle bounds, SizeF factor, BoundsSpecified specified ) override
Parameters
- bounds
-
Type:
System.Drawing::Rectangle
A Rectangle that specifies the initial bounds.
- factor
-
Type:
System.Drawing::SizeF
A SizeF that indicates the amount the current bounds should be increased by.
- specified
-
Type:
System.Windows.Forms::BoundsSpecified
A bitwise combination of the BoundsSpecified values that indicate the how to define the control's size and position returned by GetScaledBounds.
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.
.NET Framework
Available since 2.0
Available since 2.0
Show: