Click or drag to resize

SizeFFitTo Method

Fits this size to the specified constraint, keeping the aspect

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public SizeF FitTo(
	SizeF constraint
)

Parameters

constraint
Type: Eto.DrawingSizeF
Constraint to fit the new size into

Return Value

Type: SizeF
The new size with the same aspect ratio with the width/height equal or within the constraint
See Also