Édition

Partage via


ListBox.GetScaledBounds(Rectangle, SizeF, BoundsSpecified) Method

Definition

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

bounds
Rectangle

A Rectangle that specifies the area for which to retrieve the display bounds.

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