FlexGrid for WinForms
GetCellRange(Int32,Int32,Int32,Int32) Method



Top row in the range.
Left column in the range.
Bottom row in the range.
Right column in the range.
Gets a CellRange object that can be used to format and manipulate a range.
Syntax
'Declaration
 
Public Overloads Function GetCellRange( _
   ByVal topRow As Integer, _
   ByVal leftCol As Integer, _
   ByVal bottomRow As Integer, _
   ByVal rightCol As Integer _
) As CellRange
'Usage
 
Dim instance As C1FlexGridBase
Dim topRow As Integer
Dim leftCol As Integer
Dim bottomRow As Integer
Dim rightCol As Integer
Dim value As CellRange
 
value = instance.GetCellRange(topRow, leftCol, bottomRow, rightCol)
public CellRange GetCellRange( 
   int topRow,
   int leftCol,
   int bottomRow,
   int rightCol
)
public:
CellRange GetCellRange( 
   int topRow,
   int leftCol,
   int bottomRow,
   int rightCol
) 

Parameters

topRow
Top row in the range.
leftCol
Left column in the range.
bottomRow
Bottom row in the range.
rightCol
Right column in the range.

Return Value

A CellRange object that can be used to format and manipulate the range.
Remarks

The CellRange object provides access to properties of the cells in the range. For example, the code below sets the style of a range:

CellRange rg = flex.GetCellRange(5, 5, 20, 8); rg.Style = flex.Styles["MyStyle"];

Note: CellRange is a class, not a struct. Because of this, you have to assign the value to a variable and then use the variable. For example, the following code will not compile:

// this does not compile flex.GetCellRange(5, 5, 20, 8).Style = flex.Styles["MyStyle"];
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback