GrapeCity.Xaml.SpreadSheet.Data
BackgroundThemeColor Property (Cell)
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > Cell Class : BackgroundThemeColor Property
Gets or sets the background theme color for a cell.
Syntax
'Declaration
 
<DefaultValueAttribute()>
Public Property BackgroundThemeColor As String
'Usage
 
Dim instance As Cell
Dim value As String
 
instance.BackgroundThemeColor = value
 
value = instance.BackgroundThemeColor
[DefaultValue()]
public string BackgroundThemeColor {get; set;}

Property Value

A theme string that specifies the background for the cell. For instance, "Accent 1 20" The default value is null which means the cell inherits the background theme color of the worksheet, column, or row.
Example
This example uses the BackgroundThemeColor 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

Cell Class
Cell Members