GrapeCity.Xaml.SpreadSheet.Data
ParentStyleName Property (Cell)
Example 


Gets or sets the parent style for a cell.
Syntax
'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;}

Property Value

The parent style for the cell. The default value is an empty string, which means the cell inherits the parent style from the row, column, or worksheet.
Example
This example uses the ParentStyleName property.
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"
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

Cell Class
Cell Members

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options