[]
        
(Showing Draft Content)

Determining the Cell Type of a Cell

You can determine the cell type of a cell. You can use the GetCellType method of the SheetView class.

Using Code

You can use the GetCellType method to get the cell type.

Example

The following code uses the GetCellType method.

FarPoint.Web.Spread.SheetView sv = FpSpread1.ActiveSheetView;
sv.Cells[0,0].CellType=new FarPoint.Web.Spread.ButtonCellType();
ListBox1.Items.Add(Convert.ToString(sv.GetCellType(0,0)));
Dim sv As FarPoint.Web.Spread.SheetView
sv = FpSpread1.ActiveSheetView
sv.Cells(0,0).CellType=New FarPoint.Web.Spread.ButtonCellType()
ListBox1.Items.Add(Convert.ToString(sv.GetCellType(0,0)))