GrapeCity.Xaml.SpreadSheet.UI
CurrentThemeName Property (GcSpreadSheet)
Example 


GrapeCity.Xaml.SpreadSheet.UI Namespace > GcSpreadSheet Class : CurrentThemeName Property
Gets or sets the current theme information for the control.
Syntax
'Declaration
 
<DefaultValueAttribute()>
<CategoryAttribute()>
Public Property CurrentThemeName As String
'Usage
 
Dim instance As GcSpreadSheet
Dim value As String
 
instance.CurrentThemeName = value
 
value = instance.CurrentThemeName
[DefaultValue()]
[Category()]
public string CurrentThemeName {get; set;}
Example
This example sets the CurrentThemeName property.
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

GcSpreadSheet Class
GcSpreadSheet Members