GrapeCity.Windows.SpreadSheet.Data Namespace > Worksheet Class > SetStyleName Method : SetStyleName(Int32,Int32,SheetArea,String) Method |
'Declaration Public Overloads Sub SetStyleName( _ ByVal row As System.Integer, _ ByVal column As System.Integer, _ ByVal sheetArea As SheetArea, _ ByVal value As System.String _ )
GrapeCity.Windows.SpreadSheet.Data.StyleInfo aaa = new GrapeCity.Windows.SpreadSheet.Data.StyleInfo(); aaa.Background = new SolidColorBrush(System.Windows.Media.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.Windows.SpreadSheet.Data.SheetArea.Cells, "aaa");
Dim aaa As New GrapeCity.Windows.SpreadSheet.Data.StyleInfo() aaa.Background = New SolidColorBrush(System.Windows.Media.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.Windows.SpreadSheet.Data.SheetArea.Cells, "aaa")
Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)