Table of Contents

Method ClampTo

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

ClampTo(SizeD)

Returns a new SizeD instance with its dimensions clamped to the specified minimum values.

public readonly SizeD ClampTo(SizeD clampTo)

Parameters

clampTo SizeD

The SizeD instance specifying the minimum width and height values to clamp to.

Returns

SizeD

A new SizeD instance where the width and height are clamped to be at least the corresponding values in clampTo.