Blazor | ComponentOne
C1.Blazor.Core Assembly / C1.Blazor.Core Namespace / Range<T> Class / Intersect Method
The range to intersect with.

In This Topic
    Intersect Method (Range<T>)
    In This Topic
    Returns the range that represents the intersection of this range and value.
    Syntax
    'Declaration
     
    
    Public Function Intersect( _
       ByVal value As Range(Of T) _
    ) As Range(Of T)
    public Range<T> Intersect( 
       Range<T> value
    )

    Parameters

    value
    The range to intersect with.

    Return Value

    A range that contains the values that are common in both ranges, or null if there is no intersection.
    Exceptions
    ExceptionDescription
    value is null.
    value does not overlap the range.
    See Also