Gets or sets the gradient style to display for the progress indicator when indicator style is set to display a gradient.
Syntax
Example
This example sets the two fill colors for a two-color gradient style of the progress indicator cell.
C# | Copy Code |
---|
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; |
Visual Basic | Copy Code |
---|
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; |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also