Spread Windows Forms 12.0 Product Documentation
FillColor2 Property (ProgressCellType)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ProgressCellType Class : FillColor2 Property
Gets or sets the second fill color to display for the progress indicator when indicator style is set to display a gradient.
Syntax
'Declaration
 
Public Property FillColor2 As Color
'Usage
 
Dim instance As ProgressCellType
Dim value As Color
 
instance.FillColor2 = value
 
value = instance.FillColor2
public Color FillColor2 {get; set;}

Property Value

Color object containing the second color for the fill area when a gradient is used
Example
This example sets the two fill colors for a two-color gradient style of the progress indicator cell.
FarPoint.Win.Spread.CellType.ProgressCellType p = new FarPoint.Win.Spread.CellType.ProgressCellType(); 
p.FillColor = Color.Coral; 
p.FillColor2 = Color.Beige; 
p.Style = FarPoint.Win.ProgressStyle.Gradient; 
p.GradientMode = Drawing2D.LinearGradientMode.Vertical; 
fpSpread1.ActiveSheet.Cells[0, 0].CellType = p; 
fpSpread1.ActiveSheet.Cells[0, 0].Value = 50;
FarPoint.Win.Spread.CellType.ProgressCellType p = new FarPoint.Win.Spread.CellType.ProgressCellType(); 
p.FillColor = Color.Coral; 
p.FillColor2 = Color.Beige; 
p.Style = FarPoint.Win.ProgressStyle.Gradient; 
p.GradientMode = Drawing2D.LinearGradientMode.Vertical; 
fpSpread1.ActiveSheet.Cells[0, 0].CellType = p; 
fpSpread1.ActiveSheet.Cells[0, 0].Value = 50;
See Also

Reference

ProgressCellType Class
ProgressCellType Members