ComponentOne FlexPivot for WinForms
C1.Win.C1FlexGrid.4.8 Assembly / C1.Win.C1FlexGrid Namespace / C1FlexGrid Class / GetCellStyle Method / GetCellStyle(Int32,Int32) Method
Row index.
Column index.

In This Topic
    GetCellStyle(Int32,Int32) Method
    In This Topic
    Gets a custom CellStyle associated with a cell.
    Syntax
    'Declaration
     
    Public Overloads Function GetCellStyle( _
       ByVal row As Integer, _
       ByVal col As Integer _
    ) As CellStyle
    public CellStyle GetCellStyle( 
       int row,
       int col
    )

    Parameters

    row
    Row index.
    col
    Column index.

    Return Value

    CellStyle object associated with the cell, or null if the cell doesn't have a custom style.
    Remarks
    If the cell doesn't have a custom style, the grid paints it using one of the built-in styles. The built-in style is selected based on the cell position and state (fixed, scrollable, highlighted, etc). To retrieve the style that will be used to paint the cell (custom or built-in) use the C1FlexGridBase.GetCellStyleDisplay method.
    See Also