Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SheetView Class / GetCellType Method
The row.
The column.
Example


In This Topic
    GetCellType Method
    In This Topic
    Gets the CellType.
    Syntax
    'Declaration
     
    Public Function GetCellType( _
       ByVal row As Integer, _
       ByVal column As Integer _
    ) As ICellType
    'Usage
     
    Dim instance As SheetView
    Dim row As Integer
    Dim column As Integer
    Dim value As ICellType
     
    value = instance.GetCellType(row, column)
    public ICellType GetCellType( 
       int row,
       int column
    )

    Parameters

    row
    The row.
    column
    The column.

    Return Value

    ICellType object containing the type of cell
    Remarks
    This is not necessarily the same as the value in the CellType property for the Cell, Row, or Column objects.
    Example
    This example illustrates the use of this member by returning the cell type for the specified cell.
    fpSpread1.ActiveSheet.Cells[0, 0, 2, 2].CellType = new FarPoint.Win.Spread.CellType.ButtonCellType();
    label1.Text = Convert.ToString(fpSpread1.ActiveSheet.GetCellType(1, 1));
    FpSpread1.ActiveSheet.Cells(0, 0, 2, 2).CellType = New FarPoint.Win.Spread.CellType.ButtonCellType()
    Label1.Text = Convert.ToString(FpSpread1.ActiveSheet.GetCellType(1, 1))
    See Also