Spread Silverlight Documentation
SpreadTheme Constructor(String)
Example 


The name of the spread theme.
Initializes a new instance of the SpreadTheme class.
Syntax
'Declaration
 
Public Function New( _
   ByVal name As System.String _
)
'Usage
 
Dim name As System.String
 
Dim instance As New SpreadTheme(name)
public SpreadTheme( 
   System.string name
)

Parameters

name
The name of the spread theme.
Example
This example creates a theme.
SpreadTheme customTheme = new SpreadTheme("customTheme1");
customTheme.Colors.Accent1 = Colors.Red;
customTheme.Colors.Accent2 = Colors.Green;
gcSpreadSheet1.Themes.Add(customTheme);
gcSpreadSheet1.CurrentThemeName = "customTheme1";
gcSpreadSheet1.Sheets[0].Cells[1, 1].BackgroundThemeColor = "Accent 1 50";
Dim customTheme As New SpreadTheme("customTheme1")
customTheme.Colors.Accent1 = Colors.Red
customTheme.Colors.Accent2 = Colors.Green
GcSpreadSheet1.Themes.Add(customTheme)
GcSpreadSheet1.CurrentThemeName = "customTheme1"
GcSpreadSheet1.Sheets(0).Cells(1, 1).BackgroundThemeColor = "Accent 1 50"
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

SpreadTheme Class
SpreadTheme Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.