Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Geometry Namespace / Utility Class / LimitRange<T> Method
The type of the value to clamp
Lower limit
The value
Upper limit

In This Topic
    LimitRange<T> Method
    In This Topic
    Clamps a value between the specified lower and upper limits.
    Syntax
    'Declaration
     
    Public Shared Sub LimitRange(Of T As IComparable)( _
       ByVal low As T, _
       ByRef value As T, _
       ByVal high As T _
    ) 
    public static void LimitRange<T>( 
       T low,
       ref T value,
       T high
    )
    where T: IComparable

    Parameters

    low
    Lower limit
    value
    The value
    high
    Upper limit

    Type Parameters

    T
    The type of the value to clamp
    See Also