UInt32.Clamp(UInt32, UInt32, UInt32) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Fixe une valeur à une valeur minimale et maximale inclusive.
public:
static System::UInt32 Clamp(System::UInt32 value, System::UInt32 min, System::UInt32 max) = System::Numerics::INumber<System::UInt32>::Clamp;
public static uint Clamp(uint value, uint min, uint max);
static member Clamp : uint32 * uint32 * uint32 -> uint32
Public Shared Function Clamp (value As UInteger, min As UInteger, max As UInteger) As UInteger
Paramètres
- value
- UInt32
Valeur à serrer.
- min
- UInt32
Minimum inclusif auquel value doit se fixer.
- max
- UInt32
Le maximum inclusif auquel value doit se serrer.
Retours
Résultat de la fixation value à la plage inclusive de min et max.