Bagikan melalui


UIntPtr.Clamp(UIntPtr, UIntPtr, UIntPtr) Metode

Definisi

Menjepit nilai ke nilai minimum dan maksimum inklusif.

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

Parameter

value
UIntPtr

unativeint

Nilai untuk menjepit.

min
UIntPtr

unativeint

Minimum inklusif yang value harus menjepit.

max
UIntPtr

unativeint

Maksimum inklusif yang value harus menjepit.

Mengembalikan

UIntPtr

unativeint

Hasil penjepitan value ke rentang min inklusif dan max.

Penerapan

Berlaku untuk