ListBox.GetScaledBounds(Rectangle, SizeF, BoundsSpecified) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the bounds within which the ListBox is scaled.
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
- factor
- SizeF
The height and width of the control's bounds.
- specified
- BoundsSpecified
One of the values of BoundsSpecified that specifies the bounds of the control to use when defining its size and position.
Returns
A Rectangle representing the bounds within which the control is scaled.
Remarks
The ListBox class overrides the Control.GetScaledBounds method to ensure that the requested height is scaled rather than the current height.
Applies to
.NET