英語で読む

次の方法で共有


IntPtr.Clamp(IntPtr, IntPtr, IntPtr) メソッド

定義

値を包括的な最小値と最大値にクランプします。

C#
public static IntPtr Clamp(IntPtr value, IntPtr min, IntPtr max);

パラメーター

value
IntPtr

クランプする値。

min
IntPtr

クランプする必要がある value 最小を含む 。

max
IntPtr

クランプする必要がある包括的な value 最大値。

戻り値

IntPtr

maxの包括的なvalue範囲にクランプしたmin結果。

実装

適用対象

製品 バージョン
.NET 7, 8, 9, 10