GrapeCity.Xaml.SpreadSheet.Data
FontSize Property (Row)
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > Row Class : FontSize Property
Gets or sets the font size for a row in points.
Syntax
'Declaration
 
<DefaultValueAttribute()>
Public Property FontSize As Double
'Usage
 
Dim instance As Row
Dim value As Double
 
instance.FontSize = value
 
value = instance.FontSize
[DefaultValue()]
public double FontSize {get; set;}

Property Value

The size of the font. The default value is -1f, which means one point smaller than the browser-defined font size.
Example
This example uses the FontSize property.
for (int i = 0; i < gcSpreadSheet1.Sheets[0].ColumnCount; i++)
            {
                gcSpreadSheet1.Sheets[0].Rows[1].SetValue(i, i);
            }
gcSpreadSheet1.Sheets[0].Rows[1].Background = new SolidColorBrush(Windows.UI.Colors.Gray);
gcSpreadSheet1.Sheets[0].Rows[1].Foreground = new SolidColorBrush(Windows.UI.Colors.Red);
gcSpreadSheet1.Sheets[0].Rows[1].Formatter = new GrapeCity.Xaml.SpreadSheet.Data.GeneralFormatter("0.00");
gcSpreadSheet1.Sheets[0].Rows[1].FontSize = 12;
gcSpreadSheet1.Sheets[0].Rows[1].FontWeight =  Windows.UI.Text.FontWeights.Bold;
gcSpreadSheet1.Sheets[0].Rows[1].BorderBottom = new GrapeCity.Xaml.SpreadSheet.Data.BorderLine(Windows.UI.Colors.Green, GrapeCity.Xaml.SpreadSheet.Data.BorderLineStyle.Thin);
gcSpreadSheet1.Sheets[0].Rows[1].BorderTop = new GrapeCity.Xaml.SpreadSheet.Data.BorderLine(Windows.UI.Colors.Green, GrapeCity.Xaml.SpreadSheet.Data.BorderLineStyle.Thin);
gcSpreadSheet1.Sheets[0].Rows[1].BorderLeft = new GrapeCity.Xaml.SpreadSheet.Data.BorderLine(Windows.UI.Colors.Green, GrapeCity.Xaml.SpreadSheet.Data.BorderLineStyle.Thin);
gcSpreadSheet1.Sheets[0].Rows[1].BorderRight = new GrapeCity.Xaml.SpreadSheet.Data.BorderLine(Windows.UI.Colors.Green, GrapeCity.Xaml.SpreadSheet.Data.BorderLineStyle.Thin);
For i As Integer = 0 To gcSpreadSheet1.Sheets(0).ColumnCount - 1
    gcSpreadSheet1.Sheets(0).Rows(1).SetValue(i, i)
Next
gcSpreadSheet1.Sheets(0).Rows(1).Background = New SolidColorBrush(Windows.UI.Colors.Gray)
gcSpreadSheet1.Sheets(0).Rows(1).Foreground = New SolidColorBrush(Windows.UI.Colors.Red)
gcSpreadSheet1.Sheets(0).Rows(1).Formatter = New GrapeCity.Xaml.SpreadSheet.Data.GeneralFormatter("0.00")
gcSpreadSheet1.Sheets(0).Rows(1).FontSize = 12
gcSpreadSheet1.Sheets(0).Rows(1).FontWeight =  Windows.UI.Text.FontWeights.Bold
gcSpreadSheet1.Sheets(0).Rows(1).BorderBottom = New GrapeCity.Xaml.SpreadSheet.Data.BorderLine(Windows.UI.Colors.Green, GrapeCity.Xaml.SpreadSheet.Data.BorderLineStyle.Thin)
gcSpreadSheet1.Sheets(0).Rows(1).BorderTop = New GrapeCity.Xaml.SpreadSheet.Data.BorderLine(Windows.UI.Colors.Green, GrapeCity.Xaml.SpreadSheet.Data.BorderLineStyle.Thin)
gcSpreadSheet1.Sheets(0).Rows(1).BorderLeft = New GrapeCity.Xaml.SpreadSheet.Data.BorderLine(Windows.UI.Colors.Green, GrapeCity.Xaml.SpreadSheet.Data.BorderLineStyle.Thin)
gcSpreadSheet1.Sheets(0).Rows(1).BorderRight = New GrapeCity.Xaml.SpreadSheet.Data.BorderLine(Windows.UI.Colors.Green, GrapeCity.Xaml.SpreadSheet.Data.BorderLineStyle.Thin)
See Also

Reference

Row Class
Row Members