Spread ASP.NET 18
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / Column Class / CellType Property
Example


In This Topic
    CellType Property (Column)
    In This Topic
    Gets or sets the default cell type for cells in this column.
    Syntax
    'Declaration
     
    
    Public Property CellType As ICellType
    'Usage
     
    
    Dim instance As Column
    Dim value As ICellType
     
    instance.CellType = value
     
    value = instance.CellType
    public ICellType CellType {get; set;}

    Property Value

    ICellType object that contains the cell type for cells in this column
    Example
    This example creates a Column object and a ButtonCellType object for the active sheet. The ButtonCellType object is assigned to the CellType property of the Column object, such that all the cells of the first column of the active sheet are button cells.
    FarPoint.Web.Spread.Column mycol;
    FarPoint.Web.Spread.ButtonCellType mycell=new FarPoint.Web.Spread.ButtonCellType();
    mycol=FpSpread1.ActiveSheetView.Columns[0];
    mycol.CellType=mycell;
    Dim mycol As FarPoint.Web.Spread.Column
    Dim mycell As New FarPoint.Web.Spread.ButtonCellType()
    mycol=FpSpread1.ActiveSheetView.Columns(0)
    mycol.CellType=mycell
    See Also