Syncfusion.Grid.Windows
Example 


Syncfusion.Windows.Forms.Grid Namespace > GridRangeInfo Class > IntersectRange Method : IntersectRange(GridRangeInfo,GridRangeInfo) Method
The first GridRangeInfo with which to intersect.
The second GridRangeInfo with which to intersect.

IntersectRange(GridRangeInfo,GridRangeInfo) Method

Creates a new GridRangeInfo with the intersection of two GridRangeInfo parameters.

Syntax
'Declaration
 
<DebuggerStepThroughAttribute()>
Public Overloads Shared Function IntersectRange( _
   ByVal r1 As GridRangeInfo, _
   ByVal r2 As GridRangeInfo _
) As GridRangeInfo
'Usage
 
Dim r1 As GridRangeInfo
Dim r2 As GridRangeInfo
Dim value As GridRangeInfo
 
value = GridRangeInfo.IntersectRange(r1, r2)
[DebuggerStepThrough()]
public static GridRangeInfo IntersectRange( 
   GridRangeInfo r1,
   GridRangeInfo r2
)

Parameters

r1
The first GridRangeInfo with which to intersect.
r2
The second GridRangeInfo with which to intersect.

Return Value

The new GridRangeInfo that this method creates.
Example

The following example creates two GridRangeInfo objects and creates a GridRangeInfo with their intersection:

GridRangeInfo firstRange = new GridRangeInfo(0, 0, 100, 100);
AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.26

See Also