Document Solutions for Excel, .NET Edition | Document Solutions
GrapeCity.Documents.Excel Namespace / IRange Interface / Intersect Method / Intersect(IRange) Method
The range to intersect with this range.
In This Topic
    Intersect(IRange) Method
    In This Topic
    Returns an IRange object that represents the intersection of two ranges.

    If range2 is from a different worksheet, an exception is thrown.
    Syntax
    IRange Intersect( 
       IRange range2
    )

    Parameters

    range2
    The range to intersect with this range.

    Return Value

    A new range which consists of the intersection of this range and range2, or null if the ranges do not intersect.
    See Also