Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: Rectangle FitIntoMaintainAspectRatio(this Size, Rectangle)

Declaration

public static Rectangle FitIntoMaintainAspectRatio(
    this Size fitWhat,
    Rectangle fitInto
)

Summary

Returns a rectangle that has the same aspect ratio as fitWhat but fits into fitInto.

Parameters

this SizefitWhat Specifies the aspect ratio of the desired rectangle.
RectanglefitInto The rectangle into which to fit the result rectangle.

Returns

The result rectangle which fits into fitInto.