UInt16.Clamp(UInt16, UInt16, UInt16) Yöntem

Tanım

Bir değeri kapsayıcı bir minimum ve maksimum değere kelepçeler.

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

Parametreler

value
UInt16

Kelepçeleme değeri.

min
UInt16

Bağlaması gereken kapsayıcı minimum value .

max
UInt16

Kelepçelenmesi value gereken kapsayıcı maksimum.

Döndürülenler

ve kapsayıcı aralığına sıkıştırmanın valueminmaxsonucu.

Uygulamalar

Şunlara uygulanır