Document Solutions for Excel, Java Edition | Document Solutions
com.grapecity.documents.excel Package / IRange Interface / 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