UInt16.Clamp(UInt16, UInt16, UInt16) Methode

Definitie

Klemmen een waarde tot een inclusieve minimum- en maximumwaarde.

public:
 static System::UInt16 Clamp(System::UInt16 value, System::UInt16 min, System::UInt16 max) = System::Numerics::INumber<System::UInt16>::Clamp;
public static ushort Clamp(ushort value, ushort min, ushort max);
static member Clamp : uint16 * uint16 * uint16 -> uint16
Public Shared Function Clamp (value As UShort, min As UShort, max As UShort) As UShort

Parameters

value
UInt16

De waarde die moet worden vastgezet.

min
UInt16

Het inclusieve minimum waarop value moet worden geklemd.

max
UInt16

Het inclusief maximum dat value moet worden vastgeklemd.

Retouren

Het resultaat van klemmen value tot het inclusieve bereik van min en max.

Implementeringen

Van toepassing op