UIntPtr.Clamp(UIntPtr, UIntPtr, UIntPtr) 方法

定義

將值夾在內含最小值和最大值。

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

參數

value
UIntPtr

unativeint

夾持的價值。

min
UIntPtr

unativeint

包容性的最低限 value 度應該被夾住。

max
UIntPtr

unativeint

包容性最大值 value 應該被夾住。

傳回

UIntPtr

unativeint

將 和 的包容範圍 valuemin箝取max後的結果。

實作

適用於