Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
Row

CellRange.Intersect(CellRange) Method

Returns the cell range that is the intersection of the current and specified ranges.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v21.2.Core.dll

Declaration

CellRange Intersect(
    CellRange other
)

Parameters

Name Type Description
other CellRange

A cell range to be checked for intersection with current range.

Returns

Type Description
CellRange

A cell range that is the intersection of the specified ranges. If ranges do not intersect, null (Nothing in Visual Basic) is returned.

Remarks

Use the CellRange.IsIntersecting method to check whether ranges intersect.

To check whether a cell range contains another range, use the CellRange.Contains method.

See Also