'Declaration Public Overloads Sub SetStyleInfo( _ ByVal row As System.Integer, _ ByVal column As System.Integer, _ ByVal style As StyleInfo _ )
Parameters
- row
- The row index.
- column
- The column index.
- style
- The style.
'Declaration Public Overloads Sub SetStyleInfo( _ ByVal row As System.Integer, _ ByVal column As System.Integer, _ ByVal style As StyleInfo _ )
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()