Spread ASP.NET 6.0 Product Documentation
CellType Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Row Class : CellType Property


Glossary Item Box

Gets or sets the default cell type for cells in this row.

Syntax

Visual Basic (Declaration) 
Public Property CellType As ICellType
Visual Basic (Usage)Copy Code
Dim instance As Row
Dim value As ICellType
 
instance.CellType = value
 
value = instance.CellType
C# 
public ICellType CellType {get; set;}

Property Value

ICellType object that contains the cell type for cells in this row

Example

This example creates a Row object and a ButtonCellType object for the active sheet. The ButtonCellType object is assigned to the CellType property of the Row object, such that the cells of the first row of the active sheet are all button cells.
C#Copy Code
    FarPoint.Web.Spread.Row myrow;
    FarPoint.Web.Spread.ButtonCellType mycell = new FarPoint.Web.Spread.ButtonCellType();
    myrow = FpSpread1.ActiveSheetView.Rows[0];
    myrow.CellType = mycell;
Visual BasicCopy Code
    Dim myrow As FarPoint.Web.Spread.Row
    Dim mycell As New FarPoint.Web.Spread.ButtonCellType()    
    myrow = FpSpread1.ActiveSheetView.Rows(0)
    myrow.CellType = mycell

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.