FlexPivot for WinForms
GetCellRange(Int32,Int32,Int32,Int32) メソッド

C1.Win.C1FlexGrid.4.5.2 アセンブリ > C1.Win.C1FlexGrid 名前空間 > C1FlexGridBase クラス > GetCellRange メソッド : GetCellRange(Int32,Int32,Int32,Int32) メソッド
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.
シンタックス
'宣言
 
Public Overloads Function GetCellRange( _
   ByVal topRow As System.Integer, _
   ByVal leftCol As System.Integer, _
   ByVal bottomRow As System.Integer, _
   ByVal rightCol As System.Integer _
) As CellRange
public CellRange GetCellRange( 
   System.int topRow,
   System.int leftCol,
   System.int bottomRow,
   System.int rightCol
)

パラメータ

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

戻り値の型

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

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"];
参照

C1FlexGridBase クラス
C1FlexGridBase メンバ
オーバーロード一覧