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


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
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

SubStyle Class
SubStyle Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.