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

限制為 和 maxmin 含範圍的結果 value

實作

適用於