GrapeCity.Xaml.SpreadSheet.Data Namespace > Worksheet Class > GetStyleName Method : GetStyleName(Int32,Int32,SheetArea) Method |
'Declaration Public Overloads Function GetStyleName( _ ByVal row As Integer, _ ByVal column As Integer, _ ByVal sheetArea As SheetArea _ ) As String
var style = new GrapeCity.Xaml.SpreadSheet.Data.StyleInfo(); style.Background = new SolidColorBrush(Windows.UI.Colors.Blue); style.Name = "CellStyle"; gcSpreadSheet1.Sheets[0].NamedStyles.Add(style); gcSpreadSheet1.Sheets[0].Cells[0, 0].StyleName = "CellStyle"; listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetStyleInfo(0, 0).Name.ToString()); listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetStyleInfo(0,0,GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells).Background.ToString()); listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetStyleName(0, 0).ToString()); listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetStyleName(0, 0, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells).ToString());
Dim style As New GrapeCity.Xaml.SpreadSheet.Data.StyleInfo() style.Background = New SolidColorBrush(Windows.UI.Colors.Blue) style.Name = "CellStyle" GcSpreadSheet1.Sheets(0).NamedStyles.Add(style) GcSpreadSheet1.Sheets(0).Cells(0, 0).StyleName = "CellStyle" ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetStyleInfo(0, 0).Name.ToString()) ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetStyleInfo(0, 0, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells).Background.ToString()) ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetStyleName(0, 0).ToString()) ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetStyleName(0, 0, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells).ToString())
Target Platforms: Windows Server 2012, Windows RT