ComponentOne Bitmap for WPF
C1.WPF.DX.4.5.2 Assembly / C1.Util.DX Namespace / DXUtil Class / Clamp Method / Clamp(Int32,Int32,Int32) Method
The value.
The min.
The max.

In This Topic
    Clamp(Int32,Int32,Int32) Method
    In This Topic
    Clamps the specified value.
    Syntax
    'Declaration
     
    Public Overloads Shared Function Clamp( _
       ByVal value As Integer, _
       ByVal min As Integer, _
       ByVal max As Integer _
    ) As Integer
    public static int Clamp( 
       int value,
       int min,
       int max
    )

    Parameters

    value
    The value.
    min
    The min.
    max
    The max.

    Return Value

    The result of clamping a value between min and max
    See Also