Spread Silverlight Documentation
GetIntersect Method


GrapeCity.Windows.SpreadSheet.Data Namespace > CellRange Class : GetIntersect Method
The first cell range.
The second cell range.
The maximum row count.
The maximum column count.
Gets the intersection of two cell ranges.
Syntax
'Declaration
 
Public Shared Function GetIntersect( _
   ByVal cellRange1 As CellRange, _
   ByVal cellRange2 As CellRange, _
   ByVal maxRowCount As System.Integer, _
   ByVal maxColumnCount As System.Integer _
) As CellRange
'Usage
 
Dim cellRange1 As CellRange
Dim cellRange2 As CellRange
Dim maxRowCount As System.Integer
Dim maxColumnCount As System.Integer
Dim value As CellRange
 
value = CellRange.GetIntersect(cellRange1, cellRange2, maxRowCount, maxColumnCount)
public static CellRange GetIntersect( 
   CellRange cellRange1,
   CellRange cellRange2,
   System.int maxRowCount,
   System.int maxColumnCount
)

Parameters

cellRange1
The first cell range.
cellRange2
The second cell range.
maxRowCount
The maximum row count.
maxColumnCount
The maximum column count.

Return Value

Returns null if there is no intersection, or the cell range of the intersection.
See Also

Reference

CellRange Class
CellRange Members