UInt16.Clamp(UInt16, UInt16, UInt16) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将值固定为非独占最小值和最大值。
public:
 static System::UInt16 Clamp(System::UInt16 value, System::UInt16 min, System::UInt16 max) = System::Numerics::INumber<System::UInt16>::Clamp;
	public static ushort Clamp(ushort value, ushort min, ushort max);
	static member Clamp : uint16 * uint16 * uint16 -> uint16
	Public Shared Function Clamp (value As UShort, min As UShort, max As UShort) As UShort
	参数
- value
 - UInt16
 
要固定的值。
- min
 - UInt16
 
应固定到的 value 非独占最小值。
- max
 - UInt16
 
应固定到的 value 非独占最大值。
返回
固定value到 和 max的min包含范围的结果。