Spread Windows Forms 7.0 Product Documentation
GradientMode Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ProgressCellType Class : GradientMode Property


Glossary Item Box

Gets or sets the gradient style to display for the progress indicator when indicator style is set to display a gradient.

Syntax

Visual Basic (Declaration) 
Public Property GradientMode As LinearGradientMode
Visual Basic (Usage)Copy Code
Dim instance As ProgressCellType
Dim value As LinearGradientMode
 
instance.GradientMode = value
 
value = instance.GradientMode
C# 
public LinearGradientMode GradientMode {get; set;}

Property Value

LinearGradientMode setting that specifies the gradient mode

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 BasicCopy 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 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.