Table of Contents

Method Shrink

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

Shrink(double?, double?)

Get this object with applied min and max constraints.

public readonly SizeD Shrink(double? maxWidth, double? maxHeight)

Parameters

maxWidth double?

Maximal width.

maxHeight double?

Maximal height.

Returns

SizeD

Shrink(bool, double)

Shrinks the specified size coordinate.

public readonly SizeD Shrink(bool vert, double maxSize)

Parameters

vert bool

Whether to shrink vertical or horizontal size.

maxSize double

Maximal possible value.

Returns

SizeD