Spread Windows Forms 10.0 Product Documentation
GradientEffect Constructor(GradientStyle,GradientDirection,Color,Color)
Example 


Indicates the style of gradient.
Indicates the direction of gradient.
Indicates the color of gradient starting.
Indicates the color of gradient ending.
Initializes the instance of GradientEffect class with specifics value.
Syntax
'Declaration
 
Public Function New( _
   ByVal style As GradientStyle, _
   ByVal direction As GradientDirection, _
   ByVal startColor As Color, _
   ByVal endColor As Color _
)
'Usage
 
Dim style As GradientStyle
Dim direction As GradientDirection
Dim startColor As Color
Dim endColor As Color
 
Dim instance As New GradientEffect(style, direction, startColor, endColor)
public GradientEffect( 
   GradientStyle style,
   GradientDirection direction,
   Color startColor,
   Color endColor
)

Parameters

style
Indicates the style of gradient.
direction
Indicates the direction of gradient.
startColor
Indicates the color of gradient starting.
endColor
Indicates the color of gradient ending.
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
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

GradientEffect Class
GradientEffect Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.