Spread Windows Forms 12.0 Product Documentation
SubStyle Constructor(Color,Color)
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > SubStyle Class > SubStyle Constructor : SubStyle Constructor(Color,Color)
The initialization of the BackColor property.
The initialization of the ForeColor property.
Initializes a new instance of the SubStyle class with specified initialization properties.
Syntax
'Declaration
 
Public Function New( _
   ByVal backColor As Color, _
   ByVal foreColor As Color _
)
'Usage
 
Dim backColor As Color
Dim foreColor As Color
 
Dim instance As New SubStyle(backColor, foreColor)
public SubStyle( 
   Color backColor,
   Color foreColor
)

Parameters

backColor
The initialization of the BackColor property.
foreColor
The initialization of the ForeColor property.
Example
This example sets a trailing day style.
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType gcDateTimeCell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
gcDateTimeCell1.DropDownCalendar.TrailingStyle = new GrapeCity.Win.Spread.InputMan.CellType.SubStyle(Color.LightSalmon, Color.Navy);
fpSpread1.Sheets[0].Cells[1, 1].CellType = gcDateTimeCell1;
Dim gcDateTimeCell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
gcDateTimeCell1.DropDownCalendar.TrailingStyle = New GrapeCity.Win.Spread.InputMan.CellType.SubStyle(Color.LightSalmon, Color.Navy)
fpSpread1.Sheets(0).Cells(1, 1).CellType = gcDateTimeCell1
See Also

Reference

SubStyle Class
SubStyle Members
Overload List