Spread Silverlight Documentation
BackgroundThemeColor Property (Cell)
Example 


Gets or sets the background theme color for a cell.
Syntax
'Declaration
 
<System.ComponentModel.DefaultValueAttribute()>
Public Property BackgroundThemeColor As System.String
'Usage
 
Dim instance As Cell
Dim value As System.String
 
instance.BackgroundThemeColor = value
 
value = instance.BackgroundThemeColor
[System.ComponentModel.DefaultValue()]
public System.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 sets the BackgroundThemeColor property.
gcSpreadSheet1.Sheets[0].Cells[0, 0, 2, 2].BackgroundThemeColor = "Accent 1 40";
gcSpreadSheet1.Sheets[0].Cells[3,3].BackgroundThemeColor = "Accent 3 40";
gcSpreadSheet1.Sheets[0].Cells[0,0,2,2].ForegroundThemeColor = "Accent 6 40";
gcSpreadSheet1.Sheets[0].Cells[0,0,2,2].FontTheme = "Headings";
gcSpreadSheet1.Invalidate();           
 
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            gcSpreadSheet1.Sheets[0].Cells[0, 0, 2, 2].Text = "Test";
            gcSpreadSheet1.Invalidate();
        }
GcSpreadSheet1.Sheets(0).Cells(0, 0, 2, 2).BackgroundThemeColor = "Accent 1 40"
GcSpreadSheet1.Sheets(0).Cells(3,3).BackgroundThemeColor = "Accent 3 40"
GcSpreadSheet1.Sheets(0).Cells(0, 0, 2, 2).ForegroundThemeColor = "Accent 6 40"
GcSpreadSheet1.Sheets(0).Cells(0, 0, 2, 2).FontTheme = "Headings"
GcSpreadSheet1.Invalidate() 

Private Sub Button1_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles Button1.Click
GcSpreadSheet1.Sheets(0).Cells(0, 0, 2, 2).Text = "Test"
GcSpreadSheet1.Invalidate()
End Sub
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

Cell Class
Cell Members

 

 


Copyright © GrapeCity, inc. All rights reserved.