GrapeCity.Xaml.SpreadSheet.UI
NamedStyles Property (GcSpreadSheet)
Example 


GrapeCity.Xaml.SpreadSheet.UI Namespace > GcSpreadSheet Class : NamedStyles Property
Gets or sets a collection of GrapeCity.Xaml.SpreadSheet.Data.StyleInfo objects for this sheet.
Syntax
'Declaration
 
<BrowsableAttribute()>
<DefaultValueAttribute()>
Public Property NamedStyles As StyleInfoCollection
'Usage
 
Dim instance As GcSpreadSheet
Dim value As StyleInfoCollection
 
instance.NamedStyles = value
 
value = instance.NamedStyles
[Browsable()]
[DefaultValue()]
public StyleInfoCollection NamedStyles {get; set;}

Property Value

The collection of GrapeCity.Xaml.SpreadSheet.Data.StyleInfo objects for this sheet.
Example
This example uses the NamedStyles property.
gcSpreadSheet1.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].Cells[0, 0].StyleName = "aaa";
GcSpreadSheet1.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).Cells(0, 0).StyleName = "aaa"
See Also

Reference

GcSpreadSheet Class
GcSpreadSheet Members