Spread WPF Documentation
SelectionBackground Property
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > Worksheet Class : SelectionBackground Property
Gets or sets a Brush object for the selection style.
Syntax
'Declaration
 
Public Property SelectionBackground As System.Windows.Media.Brush
'Usage
 
Dim instance As Worksheet
Dim value As System.Windows.Media.Brush
 
instance.SelectionBackground = value
 
value = instance.SelectionBackground
public System.Windows.Media.Brush SelectionBackground {get; set;}

Property Value

The Brush object for this sheet.
Example
This example sets the SelectionBackground property.
gcSpreadSheet1.Sheets[0].SelectionBackground = new SolidColorBrush(Colors.DarkMagenta);
gcSpreadSheet1.Sheets[0].SelectionBorderColor = Color.FromArgb(150, 10, 100, 99);
gcSpreadSheet1.Invalidate();
GcSpreadSheet1.Sheets(0).SelectionBackground = New SolidColorBrush(Colors.DarkMagenta)
GcSpreadSheet1.Sheets(0).SelectionBorderColor = Color.FromArgb(150, 10, 100, 99)
GcSpreadSheet1.Invalidate()
See Also

Reference

Worksheet Class
Worksheet Members