Spread Silverlight Documentation
RangeGroupBackground Property (GcSpreadSheet)
Example 


GrapeCity.Windows.SpreadSheet.UI Namespace > GcSpreadSheet Class : RangeGroupBackground Property
Gets or sets the backgroud of the range group
Syntax
'Declaration
 
<System.ComponentModel.DefaultValueAttribute()>
Public Property RangeGroupBackground As System.Windows.Media.Brush
'Usage
 
Dim instance As GcSpreadSheet
Dim value As System.Windows.Media.Brush
 
instance.RangeGroupBackground = value
 
value = instance.RangeGroupBackground
[System.ComponentModel.DefaultValue()]
public System.Windows.Media.Brush RangeGroupBackground {get; set;}
Example
This example sets the RangeGroupBackground property.
GcSpreadSheet1.Sheets[0].ColumnCount = 7;
GcSpreadSheet1.Sheets[0].RowCount = 34;
GcSpreadSheet1.Sheets[0].Cells[0, 0].Text = "Western";
GcSpreadSheet1.Sheets[0].Cells[0, 1].Text = "Western";
GcSpreadSheet1.Sheets[0].Cells[0, 2].Text = "Western";
GcSpreadSheet1.Sheets[0].Cells[1, 0].Text = "A";
GcSpreadSheet1.Sheets[0].Cells[1, 1].Text = "B";
GcSpreadSheet1.Sheets[0].Cells[1, 2].Text = "C";
GcSpreadSheet1.Sheets[0].Cells[2, 0].Text = "A";
GcSpreadSheet1.Sheets[0].Cells[2, 1].Text = "B";
GcSpreadSheet1.Sheets[0].Cells[2, 2].Text = "C";
GcSpreadSheet1.Sheets[0].RowRangeGroup.Group(0, 2);
GcSpreadSheet1.RangeGroupBackground = new System.Windows.Media.SolidColorBrush(Color.FromArgb(200, 180, 50, 25));
GcSpreadSheet1.RangeGroupBorderBrush = new SolidColorBrush(Colors.Green);
GcSpreadSheet1.RangeGroupLineStroke = new SolidColorBrush(Colors.Blue);
GcSpreadSheet1.Sheets(0).ColumnCount = 7
GcSpreadSheet1.Sheets(0).RowCount = 34
GcSpreadSheet1.Sheets(0).Cells(0, 0).Text = "Western"
GcSpreadSheet1.Sheets(0).Cells(0, 1).Text = "Western"
GcSpreadSheet1.Sheets(0).Cells(0, 2).Text = "Western"
GcSpreadSheet1.Sheets(0).Cells(1, 0).Text = "A"
GcSpreadSheet1.Sheets(0).Cells(1, 1).Text = "B"
GcSpreadSheet1.Sheets(0).Cells(1, 2).Text = "C"
GcSpreadSheet1.Sheets(0).Cells(2, 0).Text = "A"
GcSpreadSheet1.Sheets(0).Cells(2, 1).Text = "B"
GcSpreadSheet1.Sheets(0).Cells(2, 2).Text = "C"
GcSpreadSheet1.Sheets(0).RowRangeGroup.Group(0, 2)
GcSpreadSheet1.RangeGroupBackground = new System.Windows.Media.SolidColorBrush(Color.FromArgb(200, 180, 50, 25))
GcSpreadSheet1.RangeGroupBorderBrush = new SolidColorBrush(Colors.Green)
GcSpreadSheet1.RangeGroupLineStroke = new SolidColorBrush(Colors.Blue)
See Also

Reference

GcSpreadSheet Class
GcSpreadSheet Members