IntPtr.Clamp(IntPtr, IntPtr, IntPtr) Méthode
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 IntPtr Clamp(IntPtr value, IntPtr min, IntPtr max) = System::Numerics::INumber<IntPtr>::Clamp;
public static IntPtr Clamp(IntPtr value, IntPtr min, IntPtr max);
static member Clamp : nativeint * nativeint * nativeint -> nativeint
Public Shared Function Clamp (value As IntPtr, min As IntPtr, max As IntPtr) As IntPtr
- value
-
IntPtr
nativeint
Valeur à serrer.
- min
-
IntPtr
nativeint
Minimum inclusif auquel value
doit se fixer.
- max
-
IntPtr
nativeint
Le maximum inclusif auquel value
doit se serrer.
nativeint
Résultat de la fixation value
à la plage inclusive de min
et max
.
Produit | Versions |
---|---|
.NET | 7, 8, 9, 10 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :