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


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