Spread Windows Forms 7.0 Product Documentation
GetCellType Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : GetCellType Method


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

Glossary Item Box

Gets the composited (inherited) cell type for a specified cell on the sheet.

Syntax

Visual Basic (Declaration) 
Public Overridable Function GetCellType( _
   ByVal row As Integer, _
   ByVal column As Integer _
) As ICellType
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
Dim value As ICellType
 
value = instance.GetCellType(row, column)
C# 
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.
C#Copy Code
fpSpread1.ActiveSheet.Cells[0, 0, 2, 2].CellType = new FarPoint.Win.Spread.CellType.ButtonCellType();
label1.Text = Convert.ToString(fpSpread1.ActiveSheet.GetCellType(1, 1));
Visual BasicCopy Code
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 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.