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


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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

GcNumberCellType Class
GcNumberCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.