GrapeCity.Xaml.SpreadSheet.Data Namespace > Worksheet Class > SetStyleInfo Method : SetStyleInfo(Int32,Int32,StyleInfo) Method |
'Declaration Public Overloads Sub SetStyleInfo( _ ByVal row As Integer, _ ByVal column As Integer, _ ByVal style As StyleInfo _ )
GrapeCity.Xaml.SpreadSheet.Data.StyleInfo aaa = new GrapeCity.Xaml.SpreadSheet.Data.StyleInfo(); aaa.Background = new SolidColorBrush(Windows.UI.Colors.Aquamarine); aaa.Name = "aaa"; gcSpreadSheet1.Sheets[0].NamedStyles.Add(aaa); gcSpreadSheet1.Sheets[0].SetStyleInfo(-1, -1, aaa); //or //gcSpreadSheet1.Sheets[0].DefaultStyle = aaa;
Dim aaa As New GrapeCity.Xaml.SpreadSheet.Data.StyleInfo() aaa.Background = New SolidColorBrush(Windows.UI.Colors.Aquamarine) aaa.Name = "aaa" GcSpreadSheet1.Sheets(0).NamedStyles.Add(aaa) GcSpreadSheet1.Sheets(0).SetStyleInfo(-1, -1, aaa) 'or 'GcSpreadSheet1.Sheets(0).DefaultStyle = aaa
Target Platforms: Windows Server 2012, Windows RT