GrapeCity.Xaml.SpreadSheet.Data Namespace > Worksheet Class > SetStyleName Method : SetStyleName(Int32,Int32,SheetArea,String) Method |
'Declaration Public Overloads Sub SetStyleName( _ ByVal row As Integer, _ ByVal column As Integer, _ ByVal sheetArea As SheetArea, _ ByVal value As String _ )
GrapeCity.Xaml.SpreadSheet.Data.StyleInfo aaa = new GrapeCity.Xaml.SpreadSheet.Data.StyleInfo(); aaa.Background = new SolidColorBrush(Windows.UI.Colors.Green); aaa.Name = "aaa"; gcSpreadSheet1.Sheets[0].NamedStyles.Add(aaa); gcSpreadSheet1.Sheets[0].SetStyleName(0, 0, "aaa"); //gcSpreadSheet1.Sheets[0].SetStyleName(0, 0, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells, "aaa");
Dim aaa As New GrapeCity.Xaml.SpreadSheet.Data.StyleInfo() aaa.Background = New SolidColorBrush(Windows.UI.Colors.Green) aaa.Name = "aaa" GcSpreadSheet1.Sheets(0).NamedStyles.Add(aaa) GcSpreadSheet1.Sheets(0).SetStyleName(0, 0, "aaa") 'GcSpreadSheet1.Sheets(0).SetStyleName(0, 0, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells, "aaa")
Target Platforms: Windows Server 2012, Windows RT