Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / Rows.DefaultRow Class / CellType Property
Example


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

    Property Value

    ICellType object containing the cell type
    Remarks

    This property is available at run time only.

    Example
    This example shows the use of this property and other properties for the default row.
    FarPoint.Win.Spread.Rows.DefaultRow df;
    df = fpSpread1.ActiveSheet.Rows.Default;
    df.BackColor = Color.Khaki;
    df.Border = new FarPoint.Win.LineBorder(Color.Blue);
    df.CellType = new FarPoint.Win.Spread.CellType.GeneralCellType();
    df.Editor = fpSpread1.EditingControl;
    df.Font = new Font("Comic Sans MS", 10);
    df.ForeColor = Color.DarkBlue;
    df.Formatter = fpSpread1.ActiveSheet.Rows.Default.Formatter;
    df.HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
    df.Locked = false;
    df.ParentStyleName = "HeaderDefault";
    df.Renderer = fpSpread1.ActiveSheet.Rows.Default.Renderer;
    df.StyleName = "HeaderDefault";
    df.VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Top;
    
    Dim df As FarPoint.Win.Spread.Rows.DefaultRow
    df = fpSpread1.ActiveSheet.Rows.Default
    df.BackColor = Color.Khaki
    df.Border = New FarPoint.Win.LineBorder(Color.Blue)
    df.CellType = New FarPoint.Win.Spread.CellType.GeneralCellType
    df.Editor = FpSpread1.EditingControl
    df.Font = New Font("Comic Sans MS", 10)
    df.ForeColor = Color.DarkBlue
    df.Formatter = FpSpread1.ActiveSheet.Rows.Default.Formatter
    df.HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right
    df.Locked = False
    df.ParentStyleName = "HeaderDefault"
    df.Renderer = FpSpread1.ActiveSheet.Rows.Default.Renderer
    df.StyleName = "HeaderDefault"
    df.VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Top
    
    See Also