GrapeCity.Xaml.SpreadSheet.Data
SpreadTheme Constructor(String)
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > SpreadTheme Class > SpreadTheme Constructor : SpreadTheme Constructor(String)
The name of the spread theme.
Initializes a new instance of the SpreadTheme class.
Syntax
'Declaration
 
Public Function New( _
   ByVal name As String _
)
'Usage
 
Dim name As String
 
Dim instance As New SpreadTheme(name)
public SpreadTheme( 
   string name
)

Parameters

name
The name of the spread theme.
Example
This example adds a theme.
GrapeCity.Xaml.SpreadSheet.Data.SpreadTheme customTheme = new GrapeCity.Xaml.SpreadSheet.Data.SpreadTheme("customTheme1");
customTheme.Colors.Accent1 = Windows.UI.Colors.Red;
customTheme.Colors.Accent2 = Windows.UI.Colors.Green;
gcSpreadSheet1.Themes.Add(customTheme);
gcSpreadSheet1.CurrentThemeName = "customTheme1";
gcSpreadSheet1.Sheets[0].Cells[1, 1].BackgroundThemeColor = "Accent 1 50";
Dim customTheme As New GrapeCity.Xaml.SpreadSheet.Data.SpreadTheme("customTheme1")
customTheme.Colors.Accent1 = Windows.UI.Colors.Red
customTheme.Colors.Accent2 = Windows.UI.Colors.Green
GcSpreadSheet1.Themes.Add(customTheme)
GcSpreadSheet1.CurrentThemeName = "customTheme1"
GcSpreadSheet1.Sheets(0).Cells(1, 1).BackgroundThemeColor = "Accent 1 50"
See Also

Reference

SpreadTheme Class
SpreadTheme Members
Overload List