Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CellRange.Intersect(CellRange) Method

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

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

#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