Spread Windows Forms 12.0 Product Documentation
GradientStyle Enumeration
Example Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace : GradientStyle Enumeration
Defines style of gradient effect.
Syntax
'Declaration
 
Public Enum GradientStyle 
   Inherits System.Enum
'Usage
 
Dim instance As GradientStyle
public enum GradientStyle : System.Enum 
Members
MemberDescription
CircularThe circular style.
CornerDownThe cornerDown style.
CornerUpThe cornerUp style.
DiagonalDownThe diagonalDown style.
DiagonalUpThe diagonalUp style.
EllipticalThe elliptical style.
HorizontalThe horizontal style.
RectangularThe rectangular style.
VerticalThe vertical style.
Example
This example sets the gradient.
GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType gccombo = new GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType();
gccombo.DropDownStyle = ComboBoxStyle.DropDownList;
gccombo.ListGradientEffect = new GrapeCity.Win.Spread.InputMan.CellType.GradientEffect(GrapeCity.Win.Spread.InputMan.CellType.GradientStyle.Circular, GrapeCity.Win.Spread.InputMan.CellType.GradientDirection.Backward, Color.Blue, Color.Yellow);
gccombo.Items.AddRange(new string[] { "Feta", "Havarti", "Swiss" });
fpSpread1.Sheets[0].Cells[1, 1].CellType = gccombo;
Dim gccombo As New GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType()
gccombo.DropDownStyle = ComboBoxStyle.DropDownList
gccombo.ListGradientEffect = New GrapeCity.Win.Spread.InputMan.CellType.GradientEffect(GrapeCity.Win.Spread.InputMan.CellType.GradientStyle.Circular, GrapeCity.Win.Spread.InputMan.CellType.GradientDirection.Backward, Color.Blue, Color.Yellow)
gccombo.Items.AddRange(New String() {"Feta", "Havarti", "Swiss"})
FpSpread1.Sheets(0).Cells(1, 1).CellType = gccombo
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         GrapeCity.Win.Spread.InputMan.CellType.GradientStyle

See Also

Reference

GrapeCity.Win.Spread.InputMan.CellType Namespace