Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / GeneralCellType Class / NegativeRed Property
Example


In This Topic
    NegativeRed Property
    In This Topic
    Gets or sets if the red text color is used for negative values.
    Syntax
    'Declaration
     
    Public Overridable Property NegativeRed As Boolean
    'Usage
     
    Dim instance As GeneralCellType
    Dim value As Boolean
     
    instance.NegativeRed = value
     
    value = instance.NegativeRed
    public virtual bool NegativeRed {get; set;}
    Example
    This example sets the NegativeRed property.
    FarPoint.Web.Spread.GeneralCellType test = new FarPoint.Web.Spread.GeneralCellType();
    test.NegativeRed = true;
    FpSpread1.Sheets[0].Cells[0, 0].CellType = test;
    Dim test As New FarPoint.Web.Spread.GeneralCellType
    test.NegativeRed = True
    FpSpread1.Sheets(0).Cells(0, 0).CellType = test
    See Also