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


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > SubStyle Class > SubStyle Constructor : SubStyle Constructor(Color,Color,Boolean,Boolean)
The initialization of the BackColor property.
The initialization of the ForeColor property.
The initialization of the Bold property.
The initialization of the UnderLine 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, _
   ByVal bold As Boolean, _
   ByVal underLine As Boolean _
)
'Usage
 
Dim backColor As Color
Dim foreColor As Color
Dim bold As Boolean
Dim underLine As Boolean
 
Dim instance As New SubStyle(backColor, foreColor, bold, underLine)
public SubStyle( 
   Color backColor,
   Color foreColor,
   bool bold,
   bool underLine
)

Parameters

backColor
The initialization of the BackColor property.
foreColor
The initialization of the ForeColor property.
bold
The initialization of the Bold property.
underLine
The initialization of the UnderLine property.
Example
This example sets the selection style.
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType gcDateTimeCell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
gcDateTimeCell1.DropDownCalendar.SelectionStyle = new GrapeCity.Win.Spread.InputMan.CellType.SubStyle(Color.Azure, Color.DarkGreen, true, false);
gcDateTimeCell1.DropDownCalendar.AllowSelection = GrapeCity.Win.Spread.InputMan.CellType.AllowSelection.Anyday;
fpSpread1.Sheets[0].Cells[1, 1].CellType = gcDateTimeCell1;
Dim gcDateTimeCell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
gcDateTimeCell1.DropDownCalendar.SelectionStyle = New GrapeCity.Win.Spread.InputMan.CellType.SubStyle(Color.Azure, Color.DarkGreen, True, False)
gcDateTimeCell1.DropDownCalendar.AllowSelection = GrapeCity.Win.Spread.InputMan.CellType.AllowSelection.Anyday
fpSpread1.Sheets(0).Cells(1, 1).CellType = gcDateTimeCell1
See Also

Reference

SubStyle Class
SubStyle Members
Overload List