Spread WPF Documentation
DefaultStyle Property (Worksheet)
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > Worksheet Class : DefaultStyle Property
Gets or sets default style information for the workbook.
Syntax
'Declaration
 
Public Property DefaultStyle As StyleInfo
'Usage
 
Dim instance As Worksheet
Dim value As StyleInfo
 
instance.DefaultStyle = value
 
value = instance.DefaultStyle
public StyleInfo DefaultStyle {get; set;}
Example
This example uses the DefaultStyle property.
GrapeCity.Windows.SpreadSheet.Data.StyleInfo aaa = new GrapeCity.Windows.SpreadSheet.Data.StyleInfo();
aaa.Background = new SolidColorBrush(Colors.Aquamarine);
aaa.Name = "aaa";
gcSpreadSheet1.Sheets[0].NamedStyles.Add(aaa);
gcSpreadSheet1.Sheets[0].SetStyleInfo(-1, -1, aaa);        
//or
//gcSpreadSheet1.Sheets[0].DefaultStyle = aaa;
gcSpreadSheet1.Invalidate();    
Dim aaa As New GrapeCity.Windows.SpreadSheet.Data.StyleInfo()
aaa.Background = New SolidColorBrush(Colors.Aquamarine)
aaa.Name = "aaa"
GcSpreadSheet1.Sheets(0).NamedStyles.Add(aaa)
GcSpreadSheet1.Sheets(0).SetStyleInfo(-1, -1, aaa)
'or
'GcSpreadSheet1.Sheets(0).DefaultStyle = aaa
GcSpreadSheet1.Invalidate()
See Also

Reference

Worksheet Class
Worksheet Members