FlexPivot for WinForms
SetCellStyle(Int32,Int32,CellStyle) メソッド

C1.Win.C1FlexGrid.4.5.2 アセンブリ > C1.Win.C1FlexGrid 名前空間 > C1FlexGridBase クラス > SetCellStyle メソッド : SetCellStyle(Int32,Int32,CellStyle) メソッド
Row index.
Column index
The CellStyle to associate with the cell.
Assigns a custom CellStyle to a cell.
シンタックス
'宣言
 
Public Overloads Sub SetCellStyle( _
   ByVal row As System.Integer, _
   ByVal col As System.Integer, _
   ByVal newStyle As CellStyle _
) 
public void SetCellStyle( 
   System.int row,
   System.int col,
   CellStyle newStyle
)

パラメータ

row
Row index.
col
Column index
newStyle
The CellStyle to associate with the cell.
解説

The SetCellStyle(Int32,String,CellStyle) method is useful if you want to assign a new style to a single cell. You can also reset the cell style by setting it to null (Nothing, in VB).

To apply a custom cell style to an entire row or column, set the row or column's RowCol.Style properties.

To apply a custom style to a range cells, use a CellRange object. For example:

CellRange rg = _flex.GetCellRange(3, 3, 10, 10); rg.Style = _flex.Styles["MyRangeStyle"];
参照

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