UIntPtr.Clamp(UIntPtr, UIntPtr, UIntPtr) Methode

Definitie

Klemmen een waarde tot een inclusieve minimum- en maximumwaarde.

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

Parameters

value
UIntPtr

unativeint

De waarde die moet worden vastgezet.

min
UIntPtr

unativeint

Het inclusieve minimum waarop value moet worden geklemd.

max
UIntPtr

unativeint

Het inclusief maximum dat value moet worden vastgeklemd.

Retouren

UIntPtr

unativeint

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

Implementeringen

Van toepassing op