Version

PercentOfBounds(RectangleF,Double) Method

Returns a rectangle which is a percentage of the given rectangle.
Syntax
'Declaration
 
Public Overloads Shared Function PercentOfBounds( _
   ByVal bounds As RectangleF, _
   ByVal extent As Double _
) As RectangleF
public static RectangleF PercentOfBounds( 
   RectangleF bounds,
   double extent
)

Parameters

bounds
The source rectangle.
extent
The percent of the source rectangle's size to assign to the destination rectangle.

Return Value

A new rectangle which is a percentage of the given rectangle.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also