Table of Contents

Method Clamp

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

Clamp(int, int, int)

Returns int value clamped to the inclusive range of min and max.

public static int Clamp(int v, int min, int max)

Parameters

v int

The value to be clamped.

min int

The lower bound of the result.

max int

The upper bound of the result.

Returns

int