Spread Windows Forms 12.0 Product Documentation
NegativeColor Property (GcNumberCellType)
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcNumberCellType Class : NegativeColor Property
Gets or sets the color when the value sign of this control is negative.
Syntax
'Declaration
 
Public Property NegativeColor As Color
'Usage
 
Dim instance As GcNumberCellType
Dim value As Color
 
instance.NegativeColor = value
 
value = instance.NegativeColor
public Color NegativeColor {get; set;}

Property Value

The color of the negative value.
Remarks
If the GrapeCity.Win.Value property is smaller than zero and the UseNegativeColor property is true, the text color uses this property value.
Example
This example sets the negative value color.
GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType ncell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType();
ncell1.NegativeColor = Color.Red;
ncell1.UseNegativeColor = true;
fpSpread1.Sheets[0].Cells[1, 1].CellType = ncell1;
fpSpread1.Sheets[0].Cells[1, 1].Value = -1;
Dim ncell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType()
ncell1.NegativeColor = Color.Red
ncell1.UseNegativeColor = True
fpSpread1.Sheets(0).Cells(1, 1).CellType = ncell1
fpSpread1.Sheets(0).Cells(1, 1).Value = -1
See Also

Reference

GcNumberCellType Class
GcNumberCellType Members