Spread WPF 17
GrapeCity.Excel Namespace / IExcelReader Interface / SetCellStyle Method
The zero based sheet index used to locate the IExcelWorkbook instance
The zero based cell row index
The zero based cell column index
The zero based format index used to locate the format settings which stores in a global section.
A CellType instance used to set the cell type.


In This Topic
    SetCellStyle Method
    In This Topic
    Set the format properties for a specified cell.
    Syntax
    'Declaration
     
    Function SetCellStyle( _
       ByVal sheet As Short, _
       ByVal row As Integer, _
       ByVal column As Integer, _
       ByVal formatIndex As Integer, _
       ByVal type As CellType _
    ) As Boolean
    'Usage
     
    Dim instance As IExcelReader
    Dim sheet As Short
    Dim row As Integer
    Dim column As Integer
    Dim formatIndex As Integer
    Dim type As CellType
    Dim value As Boolean
     
    value = instance.SetCellStyle(sheet, row, column, formatIndex, type)
    bool SetCellStyle( 
       short sheet,
       int row,
       int column,
       int formatIndex,
       CellType type
    )

    Parameters

    sheet
    The zero based sheet index used to locate the IExcelWorkbook instance
    row
    The zero based cell row index
    column
    The zero based cell column index
    formatIndex
    The zero based format index used to locate the format settings which stores in a global section.
    type
    A CellType instance used to set the cell type.

    Return Value

    true if the cell is in a valid cell in the specified worksheet, otherwise, false
    See Also