GrapeCity.Xaml.SpreadSheet.Data
Colors Property
Example 


Gets or sets the base colors of the theme.
Syntax
'Declaration
 
Public Property Colors As ThemeColor
'Usage
 
Dim instance As SpreadTheme
Dim value As ThemeColor
 
instance.Colors = value
 
value = instance.Colors
public ThemeColor Colors {get; set;}

Property Value

The base colors of the theme.
Example
This example uses the Colors 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"
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

SpreadTheme Class
SpreadTheme Members

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options