GrapeCity.Xaml.SpreadSheet.Data Namespace > Cell Class : ParentStyleName Property |
'Declaration <DefaultValueAttribute()> Public Property ParentStyleName As String
'Usage Dim instance As Cell Dim value As String instance.ParentStyleName = value value = instance.ParentStyleName
[DefaultValue()] public string ParentStyleName {get; set;}
gcSpreadSheet1.Sheets[0].NamedStyles.Add(new GrapeCity.Xaml.SpreadSheet.Data.StyleInfo() { Background = new SolidColorBrush(Windows.UI.Colors.Red), Name = "aaa", VerticalAlignment = GrapeCity.Xaml.SpreadSheet.Data.CellVerticalAlignment.Center} ); gcSpreadSheet1.Sheets[0].NamedStyles.Add(new GrapeCity.Xaml.SpreadSheet.Data.StyleInfo() { Background = new SolidColorBrush(Windows.UI.Colors.Blue), Name = "ParentStyle", TextIndent = 5}); gcSpreadSheet1.Sheets[0].Cells[0, 0].StyleName = "aaa"; gcSpreadSheet1.Sheets[0].Cells[0, 0].ParentStyleName = "ParentStyle";
GcSpreadSheet1.Sheets(0).NamedStyles.Add(New GrapeCity.Xaml.SpreadSheet.Data.StyleInfo() With {.Background = New SolidColorBrush(Windows.UI.Colors.Red), .Name = "aaa", .VerticalAlignment = GrapeCity.Xaml.SpreadSheet.Data.CellVerticalAlignment.Center}) GcSpreadSheet1.Sheets(0).NamedStyles.Add(New GrapeCity.Xaml.SpreadSheet.Data.StyleInfo() With {.Background = New SolidColorBrush(Windows.UI.Colors.Blue), .Name = "ParentStyle", .TextIndent = 5}) GcSpreadSheet1.Sheets(0).Cells(0, 0).StyleName = "aaa" GcSpreadSheet1.Sheets(0).Cells(0, 0).ParentStyleName = "ParentStyle"
Target Platforms: Windows Server 2012, Windows RT