GrapeCity.Windows.SpreadSheet.UI Namespace > GcSpreadSheet Class : CurrentThemeName Property |
'Declaration <System.ComponentModel.CategoryAttribute("Spread Workbook")> <System.ComponentModel.DefaultValueAttribute()> Public Property CurrentThemeName As System.String
'Usage Dim instance As GcSpreadSheet Dim value As System.String instance.CurrentThemeName = value value = instance.CurrentThemeName
[System.ComponentModel.Category("Spread Workbook")] [System.ComponentModel.DefaultValue()] public System.string CurrentThemeName {get; set;}
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"
Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)