Back to Devexpress

CellRange.Intersect(CellRange) Method

officefileapi-devexpress-dot-spreadsheet-dot-cellrange-dot-intersect-x28-devexpress-dot-spreadsheet-dot-cellrange-x29.md

latest2.0 KB
Original Source

CellRange.Intersect(CellRange) Method

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

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
CellRange Intersect(
    CellRange other
)
vb
Function Intersect(
    other As CellRange
) As CellRange

Parameters

NameTypeDescription
otherCellRange

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

|

Returns

TypeDescription
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

IsIntersecting(CellRange)

Contains(CellRange)

CellRange Interface

CellRange Members

DevExpress.Spreadsheet Namespace