Spread Windows Forms 6.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 (that is, 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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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