Spread Windows Forms 9.0 Product Documentation
GetCellType Method
Example 


Row index of the cell
Column index of the cell
Gets the composited (inherited) cell type for a specified cell on the sheet.
Syntax
'Declaration
 
Public Overridable 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 virtual ICellType GetCellType( 
   int row,
   int column
)

Parameters

row
Row index of the cell
column
Column index of the cell

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))
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SheetView Class
SheetView Members
CellType Property (Cell)
CellType Property (Row)
CellType Property (Column)

User-Task Documentation

Customizing with Cell Types

 

 


Copyright © GrapeCity, inc. All rights reserved.